forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 upload => Topic started by: Ziptrax on January 12, 2011, 07:45:56 pm

Title: losing Exif data
Post by: Ziptrax on January 12, 2011, 07:45:56 pm
Hi,

When i upload pictures with autoresize on and a maximum size of 1920, when the image is larger than 1920, coppermine resizes the picture ok, but all exif data is lost.
Is it not possible to copy all exif data from the image before resize, then re-add it back on after the original image is resized?

My gallery is at www.share-snaps.com

Thanks
Title: Re: losing Exif data
Post by: Nibbler on January 12, 2011, 08:00:33 pm
No, Coppermine lacks the ability to write EXIF data.
Title: Re: losing Exif data
Post by: Ziptrax on January 12, 2011, 09:05:39 pm
Ok, i just found this on the net, while searching for reading and writing exif data

http://open.vinayras.com/phpexifrw_exif_reader_writer

which says coppermine photo gallery uses this class.

When i get a spare few minutes later, i will have a look see if i can create a hack for doing what i asked above.
Title: Re: losing Exif data
Post by: Ziptrax on January 13, 2011, 02:28:55 pm
Tried to do this using the PEL library as that has started being updated again but cant get it to work right at the moment.

Does the imagemagik resize keep the exif data? as i have read that imagemagik can save exif data when doing operations?
Title: Re: losing Exif data
Post by: phill104 on January 13, 2011, 03:30:42 pm
Wehave been discussing the use of some different libraries to extract and re-write exif data during the resize process. This will be a consideration for CPG1.6 but no new features will be added to the core of CPG1.5.x. If you can do it as a plugin then that is fine.