Quote:
Originally Posted by Dsyn11
Hey Andrew, me again.
I set link_imagesize to 300, but I want that to be resize WIDTH. I want HEIGHT to be resized to 75. Any way to restrict both vertical and horizontal? Thanks!
David
|
Not in the current version, unless you edit the file local_resize.php:
around line 148, these two lines:
Code:
$thumb = ImageCreateTrueColor($thumb_w,$thumb_h);
imagecopyresized($thumb,$im,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y);
You need to set thumb_x and thumb_h to the width and height you require. This of course will be a semi-permanent change. Will think about this for 2.1.1 - the reason for having only one parameter was so that images maintain their aspect ratios.