Viewing 6 replies - 1 through 6 (of 6 total)
  • Jason

    (@verysimple)

    This is a problem with WordPress in general. I found a post here that mentions a possible way to preserve EXIF data by forcing WordPress to use ImageMagick instead of the GD library for image manipulation:

    https://www.tuchesaufntish.com/2011/05/27/preserving-metadata-in-images-uploaded-to-wordpress-sites/

    Otherwise I’ve been kinda checking out an EXIF library to see if I can grab the data and hang onto it, then replace it after WordPress has done the resize. The EXIF data can be somewhat complex and since the image size data is in there, Imsanity has to be able to parse and understand it in order to change the relevant fields. Basically it’s trickier than I would have thought, but hopefully I’ll get to it at some point.

    Thread Starter owh

    (@owh)

    Thanks a lot for getting back.

    The information on the link in your post doesn’t seem correct as I checked the thumbnail files (i.e. the reduced files by WordPress) and the geo-tag (EXIF) is there.

    So, if I upload filename.jpg with EXIF to WordPress, the EXIF is preserved in the image and all thumbnails.

    However, with imsanity, if I upload filename.jpg (with size exceeds that set in imsanity), the filename.jpg will be reduced and the EXIF will be lost. Then, all thumbnails will not have the EXIF.

    Any clue?

    Are you still having this issue? I have tested on my own system as of WordPress 3.8 and all EXIF data is preserved on all of the resized files – even after going through Imsanity. I know it didn’t work at one time but I believe this has been fixed in a WordPress update.

    You do have to specify the flag –enable-exif when compiling PHP in order for WordPress to read the EXIF data, but I’m assuming that was working since you did get the data in your thumbnails.

    I have exif support enabled in PHP on my server and images processed through Imsanity (and thumbnails created by WP 3.91) have no exif data. Wish they did.

    Hey Dave, Imsanity uses WordPress functions behind the scenes to do the resizing. I’ve tested with PHP configured for EXIF support and WordPress (as well as Imsanity) does seem to retain the EXIF data. I’m not a total expert on PHP’s EXIF extension though, so I’m not exactly sure what your setup might be missing.

    Thread Starter owh

    (@owh)

    Hey Jason

    Sorry that it took me a looong time to get back. I stopped blogging for a long while due to work. I just want to confirm to you that the plugin preserve the geo-tag. Well done and thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Preserve EXIF’ is closed to new replies.