Bug 432094

Summary: XMP and IPTC metadata loss when rotating image jpg
Product: [Applications] gwenview Reporter: Antonin Roussel <antonin.roussel>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nate, postix
Priority: VHI    
Version First Reported In: Other (add details in bug description)   
Target Milestone: ---   
Platform: Mageia RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=278661
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Comparing exiftool -g file.jpg outputs

Description Antonin Roussel 2021-01-25 13:21:50 UTC
Created attachment 135164 [details]
Comparing exiftool -g file.jpg outputs

SUMMARY
using jbrout and exiftool to tag (and read)
XMP and IPTC metadata loss when rotating image jpg
I will now be aware

STEPS TO REPRODUCE
1. tag
2. read
2. rotate
3. read

OBSERVED RESULT
IPTC and XMP metadata are gone

EXPECTED RESULT
height, width, size and a little bit more expected to change

SOFTWARE/OS VERSIONS
Gwenview: gwenview-19.04.0-2.mga7.x86_64
Linux/KDE Plasma: Mageia 7 - 5.10.8-desktop-2.mga7
KDE Plasma Version: kdeplasma-addons-5.15.4-1.mga7.x86_64
KDE Frameworks 5.57.0
Qt 5.12.6 (construit sur 5.12.2)
Le système de fenêtres xcb

ADDITIONAL INFORMATION
Comment 1 Antonin Roussel 2021-01-25 13:26:36 UTC
close to bug 278661
Comment 2 Nate Graham 2021-01-26 00:56:43 UTC
Yeah close but not exactly the same thing.
Comment 3 postix 2025-08-17 11:33:11 UTC
1) I've checked the metadata with `exiftool -g my.jpg`,
2) opened it in Gwenview 25.08.0
3) rotated it in Gwenview and saved it
4) step 1)

The metadata all remain. Can you please check if it's still reproducible for you in a recent version? Thanks!
Comment 4 Antonin Roussel 2025-08-19 13:50:42 UTC
The bug remains in the following environment:
Gwenview Version 23.04.3
gwenview-23.04.3-1.mga9.src.rpm

NEED TO TRY in Gwenview 25.08.0.

As I wonder if there are keywords in your test file, here are more information and then more precise steps :

Operating System: Mageia 9
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.7
Kernel Version: 6.6.93-desktop-1.mga9 (64-bit)
Graphics Platform: X11

STEPS TO REPRODUCE #2
1.1 tag in IPTC: 
exiftool  -keywords+=k1 -keywords+=k2  my.jpg 
1.2 tag copied in XMP: 
exiftool  -TagsFromFile my.jpg  '-xmp:subject<keywords'  my.jpg 
2. read with exiftool (or even with Gwenview)
3. rotate with Gwenview, and save.
4. read again
Comment 5 Antonin Roussel 2025-08-22 08:15:31 UTC
The bug remains in gwenview-25.08.0-1.mga10

********************************************
From a fresh and light install of Mageia cauldron :

# as root
urpmi gwenview
urpmi exiftool
urpmi imagemagick

rpm -q -f `which gwenview`
> gwenview-25.08.0-1.mga10

$ as normal user
*** Get a jpg picture, for instance from a browser logo ***
magick about-logo.png about-logo.jpg
exiftool -keywords+=k1 -keywords+=k2 about-logo.jpg 
exiftool -xmp:subject+=k1 -xmp:subject+=k2 about-logo.jpg 
exiftool about-logo.jpg 

cp about-logo.jpg copy.jpg
*** Rotate copy.jpg with Gwenview and save ***
exiftool copy.jpg 

*** You can see the keywords are gone ***
Comment 6 Bug Janitor Service 2025-09-06 03:47:59 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!