Page 1 of 1

How can I resize without stripping EXIF?

Posted: 2016-11-11T05:02:54-07:00
by Amin Sabet
My forum software is XenForo. It is set up to resize images over 1600px max dimension down to that side using ImageMagick, and somehow EXIF data is being stripped. I understand that ImageMagick by default does not strip EXIF.

One of my forum moderators proposed the code change here: https://xenforo.com/community/threads/p ... ck.122240/

However, after making that change, we are continuing to see EXIF being stripped from the images.

The full content of that modified code is here: https://drive.google.com/file/d/0B93HF6 ... sp=sharing

Would be grateful for any help in getting this to work. Our forum users are photographers who would like to see EXIF information preserved under all circumstances.

Thanks,
Amin

Re: How can I resize without stripping EXIF?

Posted: 2016-11-11T06:21:28-07:00
by Bonzo
Your code is using Imagick not Imagemagick directly and it is correct that in Imagemagick -resize should preserve the EXIF data whereas -thumbnail will remove it.

I can see one part of your code in pecl.php is using thumbnailimage which is probably the problem.