This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Preserving metadata in gwenview

Tags: None
(comma "," separated)
User avatar
apater
Registered Member
Posts
18
Karma
0

Preserving metadata in gwenview

Tue Mar 25, 2014 12:36 am
Hi all. A little while ago I did some testing on gwenview and found that image data gets lost when rotating an image. I'd like to confirm the issue, so if someone could test it on their system and report the results to the bug I opened, it would be very much appreaciated.

https://bugs.kde.org/show_bug.cgi?id=328282
User avatar
apater
Registered Member
Posts
18
Karma
0

Re: Preserving metadata in gwenview

Mon Apr 21, 2014 4:22 pm
Recently, I looked through the code to see if I could find where the issue is, but not without any luck. (I'm not that good at understanding code.)

I also looked through the code for digikam, as that app does not destroy data when rotating an image. There I did see an option to simply set the orientation tag, rather then actually modifying the image. Perhaps something similiar would work in gwenview, though that would not help to preserve data when other types of image modifications were made.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Preserving metadata in gwenview

Mon Apr 21, 2014 11:38 pm
What is likely happening is that a new image file is being created and being filled with the newly modified image data, prior to that file being used to replace the existing one. This would result in the metadata being lost, unless it was explicitly copied over. To fix this bug, you would need to identify the metadata and explicitly copy it into the new file - assuming that is what the code is actually doing.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell