Dinstinct "Use dimension" flags for *thumbs* and *resized* pictures Dinstinct "Use dimension" flags for *thumbs* and *resized* pictures
 

News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Dinstinct "Use dimension" flags for *thumbs* and *resized* pictures

Started by stephdeluxe, March 02, 2005, 02:32:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stephdeluxe

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 :

// 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

kegobeer

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?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots