Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: GD Image Resize Losing EXIF data  (Read 3810 times)

0 Members and 1 Guest are viewing this topic.

cuteseal

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
[Solved]: GD Image Resize Losing EXIF data
« on: August 14, 2004, 10:56:20 am »

Hi,

I just started using coppermine this week and love it!  This is what I've done so far: http://www.shuttertalk.com/gallery

Anyway, my question is this:

I've used a modification to automatically resize images when they exceed the max_height_width.  It works well, except that the resized image does not retain the EXIF data.

Any ideas how I can fix this?

I think the code is something like this:

Code: [Select]
} elseif (max($imginfo[0], $imginfo[1]) > $CONFIG['max_upl_width_height']) {
// RatKing's hack to resize images that are 'to big' according to the admin
 // Determain which is the tallest width or height.
 if ( $imginfo[0] > $imginfo[1] ) { $tall = 'wd'; } else { $tall = 'ht'; }

 // Simply resize the image to the biggest file size that is allowed.
 resize_image($path_to_image, $path_to_image, $CONFIG['max_upl_width_height'], $CONFIG['thumb_method'], $tall);


Thanks.
Julian
« Last Edit: August 16, 2004, 07:44:06 am by GauGau »
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: GD Image Resize Losing EXIF data
« Reply #1 on: August 14, 2004, 11:56:56 am »

GD does not retain EXIF - try using the newer version of ImageMagick instead
Logged
SANIsoft PHP applications for E Biz

cuteseal

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: GD Image Resize Losing EXIF data
« Reply #2 on: August 16, 2004, 01:22:51 am »

Thanks Tarique... ImageMagick is... magic :D
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.