class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
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
$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?