x
 
Create New Page
 View Previous Changes    ( Last updated by GDmac - expocom )

image thumbs

By default thumbs that are created by the gallery module
take the smallest side of your image and scale to that size.

example: thumb resize set to 120x120 and you upload
an image of 600x300 then the smallest side is resized to 120.
This results in an image of 240x120.

If you want the thumb-resize setting to be the maximum of
either side (like me), so that an image is never wider or higher than 120,
then you can set the core image lib to resize with a different method.

... change a setting how resizing is handled.  FTP in and grab
system/core.image_lib.php.  Near the top, around line 29 you’ll spot:

var $master_dim = ‘height’; // height, width, or auto

This determines how EE handles resizing.  If you switch it to ‘auto’, then
a 140x140 setting will result in the image not being bigger than 140 on
either side.  It will shrink both down to at least that - proportionately if
that’s how you’ve got it set.

forum thread: http://expressionengine.com/forums/viewthread/61181/

Category:Images
Category:Gallery

Category:EE1

Categories: