Author Topic: Preserving EXIF info while resizing via GD  (Read 5149 times)

0 Members and 1 Guest are viewing this topic.

Offline zer0

  • Pre-Newbie
  • Posts: 1
    • View Profile
Preserving EXIF info while resizing via GD
« on: April 25, 2005, 05:45:14 AM »
I like the smoothness while resizing images using GD. However, it seems that GD blows out the EXIF information. I am pretty sure about this since resizing using ImageMagick is fine but the resized pictures do not look as good.

My question is:
  + Is there a mod to make GD resizing without loosing any EXIF data? Either by not loosing it or temporary save it somewhere and then add it back to the final image?
  + Is there tweak to EXIF mod to get the data from my orginal images instead of the resized ones?
  + At last resort, how to tweak ImageMagick so that I can have the final image as I like?

Thanks,
z0

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Preserving EXIF info while resizing via GD
« Reply #1 on: April 25, 2005, 07:15:36 AM »
+ Is there a mod to make GD resizing without loosing any EXIF data? Either by not loosing it or temporary save it somewhere and then add it back to the final image?
not that I'm aware of :(

+ Is there tweak to EXIF mod to get the data from my orginal images instead of the resized ones?
yes, there is, I posted a code somewhere...probably under "Open original image ..." mod :?:

+ At last resort, how to tweak ImageMagick so that I can have the final image as I like?
I think this what u are looking for:
http://www.4homepages.de/forum/index.php?topic=2893.0
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline WhiteRabbit

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Preserving EXIF info while resizing via GD
« Reply #2 on: August 11, 2005, 03:18:02 AM »
Hello people.

There are some GNU/GPL exif libraries on internet that allows writing exif data on a jpg (something that the exif lib that comes included in PHP can't do).

There are two:

http://pel.sourceforge.net/

http://www.ozhiker.com/electronics/pjmt/

The first one is very well documented.
Hope it helps.

Best regards.
WR.