Reply to Re: Image Resize option future

Re: Image Resize option future new!
by colin, 16 years, 9 months ago
Yes, it is normal in fact, I can confirm the behaviour.

Here is what happens:
If you use image_ratio_no_zoom_in, then it takes in account image_x and image_y. Since image_x is by default set at 150 pixels, it resizes your picture so that it is not taller than 70 pixels, but also not wider than 150px.

So you have two solutions.

This one, which sets an extra large maximum width:
$handle->image_ratio_no_zoom_in = TRUE;
$handle->image_y = 70;
$handle->image_x = 9999;
Or this one, which calculates the width (but will zoom in if the original height is less than 70px):
$handle->image_ratio_x = TRUE;
$handle->image_y = 70;
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