Keeping the EXIF information when using the web image tools Keeping the EXIF information when using the web image tools
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Keeping the EXIF information when using the web image tools

Started by Dannisk, August 27, 2004, 05:14:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dannisk

Hi All,

I notice that the EXIF information is not kept (in the image) when I use the web image tool (croping and rotating tool) is this consider as a feature or his someone already working on that. I'm asking 'cause I know that you are working on having more EXIF info in the database and the easy way to update this information would be to flush the exif table and regenerate the exif from the image already stored. But if the image have been modified with the image tool we'll be left with missing EXIF information.

Thanks for any info.
Dannisk

Joachim Müller

the PicEditor uses your image library (usually GD), which doesn't keep Exif info - it's being stripped from the pic (as it's actually a new pic, with the old one deleted and the new one saved in it's place). The only solution would be a tool that can write exif info to a file (we currently don't have such a tool available). I'd appreciate your comments on this, not sure what else to do.
I recommend rotating on the client before uploading anyway.

Joachim

Dannisk

Humm... so the solution would be to read the exif data, make the modification (rotation/croping) and then write back the exif data. Some information from the exif will also need to be changed to represent the changes like the new width and height and maybe a comment saying it has been altered by some tool (ex: Coppermine Picture Web Tools ;)).

As I understood the Exifier 1.4 will be used for cpg1.4, the problem is that this lib doesn't write exif data, it only reads it. I did a bit or searching and I found another tool that seams more complete : The PHP JPEG Metadata Toolkit. That lib read more than 450 popular digital cameras and it also write EXIF data. I didn't test the difference between these two libs (read performance, amount of data available, etc.) but before I do, I'm currently checking with the author to see if it's feasible 'cause it seams that there's some problem writing MakerNotes.

I'll get back on this subject once I have an answer from the author or if I have time to make my own tests.
Dannisk

Tarique Sani

The PHP JPEG Metadata Toolkit does look very promising and if it returns the metadata in an array - it can be a "drop in" replacement for Exifier. Yes even I noticed that writing back Maker notes is a problem
SANIsoft PHP applications for E Biz