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

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

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