forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: stephdeluxe on March 02, 2005, 02:32:50 pm

Title: Dinstinct "Use dimension" flags for *thumbs* and *resized* pictures
Post by: stephdeluxe on March 02, 2005, 02:32:50 pm
I wish the "Files and thumbnails settings" in the config pannel featured  2 distinct "Use dimension" select box for thumbs and resized pictures.

Indeed, "thumb_use" is applied to both thumbs and resized (aka "normal") pictures which just doesn't work for me.

A quickfix I found line 176 in util.php is :

Code: [Select]
// if (resize_image($image, $normal, $CONFIG['picture_width'], $CONFIG['thumb_method'], $CONFIG['thumb_use'])) {
if (resize_image($image, $normal, $CONFIG['picture_width'], $CONFIG['thumb_method'], "wd")) {

Does the "Admin Tools" trick for me. i'd need to edit all the "resize_image" calls though. i hope this still helps.


- steph
Title: Re: Dinstinct "Use dimension" flags for *thumbs* and *resized* pictures
Post by: kegobeer on March 02, 2005, 08:27:20 pm
Your fix means a user can't select width, height, or max aspect.  They would be stuck with width.  I don't see any reason to have two different resize options when one does the job.  Does it make sense to allow a thumbnail to be resized according to width, but the intermediate image resized according to height?