Hello,
maybe it isn't a bug, but i wanted to mention, that my exif tags are gone, when i change the image resolution via the media gallery. I use Image Magick 6 to handle the images.
Can anyone confirm this or guide me how to avoid this?
Thanks, Harald
exif tags are lost after chaning the image in the media gall
-
Harald Weingaertner
- Regular
- Posts: 474
- Joined: Mon Mar 27, 2006 12:32 am
A quick Google search indicates that ImageMagick is subject to a buffer overflow security flaw with EXIF data. You sure you want to do this?
That's right, you actually modified the plugin to handle EXIF, didn't you? Nice job, as I recall.
Sorting through the rest of the Google results (wow, that buffer overflow really made the news, didn't it?), it looks like ImageMagick tries to keep the EXIF data if it can. The -strip option was added to remove it. I'm not at my development computer right now, but if we use the -strip option, removing it should preserve your EXIF data.
That's right, you actually modified the plugin to handle EXIF, didn't you? Nice job, as I recall.
Sorting through the rest of the Google results (wow, that buffer overflow really made the news, didn't it?), it looks like ImageMagick tries to keep the EXIF data if it can. The -strip option was added to remove it. I'm not at my development computer right now, but if we use the -strip option, removing it should preserve your EXIF data.
-
Harald Weingaertner
- Regular
- Posts: 474
- Joined: Mon Mar 27, 2006 12:32 am
I'm not sure, if i understand you right.
I haven't touched the media manager plugin yet.
When resizing an image into the media library you loose the exif data. I have uploaded pictures with a resolution of 3000x2000px and they have the exif data. From the moment i resize the images to 800x600 the exif data is gone.
In serendipity_event_usergallery.php i cannot find the string "strip".
I hope i'm not confusing you.
Regards, Harald
I haven't touched the media manager plugin yet.
When resizing an image into the media library you loose the exif data. I have uploaded pictures with a resolution of 3000x2000px and they have the exif data. From the moment i resize the images to 800x600 the exif data is gone.
In serendipity_event_usergallery.php i cannot find the string "strip".
I hope i'm not confusing you.
Regards, Harald
No, I'm probably confusing myself. I'm overworked right now. I thought you had contributed an EXIF extension to the user gallery plugin, but perhaps I'm thinking of someone else.
We've got the problem nailed down. The only problem now is, why does it happen? We don't strip out EXIF data ourselves, I don't think. ImageMagic 6 claims it won't strip EXIF unless you use the -strip option.
I can't find anything in the functions_images_inc.php that would cause the "convert" command to strip tags, either. I just don't know how we're stripping the tags...
We've got the problem nailed down. The only problem now is, why does it happen? We don't strip out EXIF data ourselves, I don't think. ImageMagic 6 claims it won't strip EXIF unless you use the -strip option.
I can't find anything in the functions_images_inc.php that would cause the "convert" command to strip tags, either. I just don't know how we're stripping the tags...
-
Harald Weingaertner
- Regular
- Posts: 474
- Joined: Mon Mar 27, 2006 12:32 am
-
Harald Weingaertner
- Regular
- Posts: 474
- Joined: Mon Mar 27, 2006 12:32 am