Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Instant Website: Realty/Listings/Auto:
picture resizing without keeping proportion :\

 

 


jimmy.g
User

Aug 14, 2009, 3:27 PM

Post #1 of 3 (5670 views)
Shortcut
picture resizing without keeping proportion :\ Can't Post

hi, so i want to know if it possible to disable the option that keep proportion of the picture cause i want to disable it for my home page last listing slider www.propriodirectdrummond.com/index.php if you can tell me how to :) thanks

im really sorry for my english


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:


Code
  $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
 


jimmy.g
User

Aug 18, 2009, 7:08 PM

Post #3 of 3 (5607 views)
Shortcut
Re: [Dave] picture resizing without keeping proportion :\ [In reply to] Can't Post

work perfectly thank you ! :D Dave