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.
OK, I see the issue. It is because image_ratio_no_zoom_in. In fact, as per the documentation, you can use only one image_ratio_xxx at the same time.
It is a shortcoming of the class: if you use image_ratio_crop, you cannot use image_ratio_no_zoom_in or image_ratio_no_zoom_out at the same time.
It is planned to change these two settings into somehing like image_no_zoom_in and image_no_zoom_out and have them to apply to all image_ratio_xxx settings.Reply
However, you can imitate the behaviour of image_ratio_no_zoom_in: you can read some variables before calling Process(), such as image_src_x, image_src_y and depending on the values, you do a resizing or not.Reply
It is a shortcoming of the class: if you use image_ratio_crop, you cannot use image_ratio_no_zoom_in or image_ratio_no_zoom_out at the same time.
It is planned to change these two settings into somehing like image_no_zoom_in and image_no_zoom_out and have them to apply to all image_ratio_xxx settings.
this means that i should to comment out:
#$handle->image_ratio_no_zoom_in = true;
is this correct?
However, you can imitate the behaviour of image_ratio_no_zoom_in: you can read some variables before calling Process(), such as image_src_x, image_src_y and depending on the values, you do a resizing or not.