Gwenview loses exif data when saving jpeg images
When I rotate an image in gwenview e.g. with the "Rotate left" button and then save the rotated image, the newly-saved image loses all exif data.
The reason is that JpegContent::save
uses a temporary QImage
for saving the file to disk.
However, QImage
does not support exif, i.e. loses all exif data when saving.
The problem seems to have been introduced in this commit: a401e666
When I revert this commit locally, gwenview does not lose exif data anymore.
Since this causes actual data loss, I think this should be fixed asap. Maybe just revert the commit that introduced the problem as a quick fix? Or find a different / better way to address the jpegQuality thing that the commit tries to address.
It would probably also be good to have tests that catch problems like this in the future.