[Solved]: GD Image Resize Losing EXIF data [Solved]: GD Image Resize Losing EXIF data
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

[Solved]: GD Image Resize Losing EXIF data

Started by cuteseal, August 14, 2004, 10:56:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cuteseal

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:


} 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

Tarique Sani

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

cuteseal

Thanks Tarique... ImageMagick is... magic :D