Don't resize when image smaller

See all posts See thread Reply

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
Re: Don't resize when image smaller
by colin, 15 years, 9 months ago
Could you paste here the logs from the class? Would you have a open_basedir restriction in place by any chance?Reply