Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Keeping the EXIF information when using the web image tools  (Read 3659 times)

0 Members and 1 Guest are viewing this topic.

Dannisk

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 18
Keeping the EXIF information when using the web image tools
« on: August 27, 2004, 05:14:06 pm »

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.
Logged
Dannisk

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Keeping the EXIF information when using the web image tools
« Reply #1 on: August 27, 2004, 10:03:23 pm »

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
Logged

Dannisk

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 18
Re: Keeping the EXIF information when using the web image tools
« Reply #2 on: August 28, 2004, 01:21:15 am »

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.
Logged
Dannisk

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: Keeping the EXIF information when using the web image tools
« Reply #3 on: August 28, 2004, 05:46:46 am »

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
Logged
SANIsoft PHP applications for E Biz
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.