Reply to Re: Don't resize when image smaller

Re: Don't resize when image smaller new!
by colin, 16 years, 2 months ago
Either you use image_ratio_no_zoom_in, same as image_ratio, but won't resize if the source image is smaller than image_x x image_y (default: false)
$handle->image_ratio_no_zoom_in = true;

Or else, if you don't want to explicitely set image_y, you can read some variables before calling Process(), such as image_src_x, image_src_y and image_src_type and depending on the values, you do a resizing or not.Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important