Reply to Re: Don't resize when image smaller

Re: Don't resize when image smaller new!
by Farhan, 15 years, 9 months ago
I tried to use the class like your 1st suggestion,

$handle->image_ratio_no_zoom_in = true;
but the smaller size were also resized.

So, I use your 2nd suggestion,
if(($handle->image_src_x < 800) 
   || ($handle->image_src_y < 600)){
    $handle->image_resize          = false;
} else {
    $handle->image_resize          = true;
    $handle->image_x	          = 800;
    $handle->image_ratio_x        = true;
}

But the file were not resized, the bigger file also!
I echoed the value for $handle->image_src_x & $handle->image_src_y, both have 0 value. I remove assignment = 0 in the class, then the value is nothing.

Would you suggest anything I could do to solve this?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