Bug 497946

Summary: Gwenview can't save rotated JPEG images anymore
Product: [Applications] gwenview Reporter: Tobias Leupold <tl>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: john.kizer, tami, tl
Priority: NOR    
Version First Reported In: 24.08.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 24.12.0
Sentry Crash Report:

Description Tobias Leupold 2024-12-27 15:41:49 UTC
Using 24.08.3 on Gentoo Linux (and also previous versions, I think this happened somewhere in the KF6 transition), Gwenview can't save rotated JPEG images anymore.

Steps to reproduce:
- Open some JPEG image
- Show Editing Tools
- Rotate Right
-Save

An error message saying "Gwenview cannot save images in 'jfif' format." pops up. The processed image is not "jfif", but a good ole JPEG file. Happens with all of my photos I would like to rotate.

My current workaround is to use jpegtran on the console, but this sucks ;-)
Comment 1 John Kizer 2025-01-06 02:15:39 UTC
Hi - could you please check in your System Settings > Default Applications > File Associations, search for jpeg above the Known Types section, and then check the Filename Patterns on the right (potentially across each of the Known Types) to see if *.jfif is listed there? I'm wondering if this is another manifestation of https://bugs.kde.org/show_bug.cgi?id=433176 , which is ultimately the same root issue as https://bugs.kde.org/show_bug.cgi?id=439519 .

It would also be worth double-checking to see if this exists in the latest version, which would be available via Flatpak if it's not yet distributed by Gentoo, as I can't personally reproduce the issue by following those steps on Gwenview 24.12.0, Fedora KDE 41.

Thanks!
Comment 2 Tobias Leupold 2025-01-06 09:47:36 UTC
image/jpeg lists *.jfif, *.jpe, *.jpeg and *.jpg.

I just tried it with 24.12.0, and I can confirm it does not happen with that version.
Comment 3 John Kizer 2025-01-06 19:32:27 UTC
Glad it's working there, then! I'm checking on that other bug report to see if others with similar issues also have them resolved using that version.

Thanks for checking!
Comment 4 Paul Zirnik 2025-04-21 17:30:53 UTC
I had the same issue after upgrading to leap 15.6. Interesting thing, it did only happen to account that has grown over years (from KDE2). A new account is not affected. To resolve the issue i deleted the complete jpeg mimetype from kde settings. Then it will be recreated automatically with the defaults after next restart. This did resolve the issue for me.