forum.coppermine-gallery.net
Support => Older/other versions => cpg1.3.x Support => Topic started by: cuteseal 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 (http://forum.coppermine-gallery.net/index.php?topic=6366.0#msg39436) 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
-
GD does not retain EXIF - try using the newer version of ImageMagick instead
-
Thanks Tarique... ImageMagick is... magic :D