
Dave
Staff
/ Moderator

Aug 18, 2009, 10:36 AM
Post #2 of 3
(5631 views)
Shortcut
|
|
Re: [jimmy.g] picture resizing without keeping proportion :\
[In reply to]
|
Can't Post
|
|
Hi jimmy.g, This isn't supported, and it's not possible to do it on a field by field basis. Meaning if you make the change it would affect all your thumbnails created after you make the change, but if you want to do it, try this: - Open cmsAdmin/lib/common.php - Save a backup copy of that file - Search for "round up" - Add the lines in red:
$targetHeight = ceil($sourceHeight * $scaleFactor); # round up $targetWidth = ceil($sourceWidth * $scaleFactor); # round up $targetHeight = $maxHeight; $targetWidth = $maxWidth;
Hope that helps! Dave Edis - Senior Developer interactivetools.com
|