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.
The setting image_ratio_no_zoom_in replaces image_ratio, not image_ratio_y.
If you use image_ratio_no_zoom_in or image_ratio, you need to set image_ratio_xandimage_ratio_y. If you don't set image_ratio_y, it defaults to 150.
There is currently no way to have the "no_zoom_in" option to automatically check only on the width. That said, you can program it yourself: before calling process, read image_src_x and image_src_y and depending on the values, adapt the ratio settings for both your cases.Reply
If you use image_ratio_no_zoom_in or image_ratio, you need to set image_ratio_x and image_ratio_y. If you don't set image_ratio_y, it defaults to 150.
There is currently no way to have the "no_zoom_in" option to automatically check only on the width. That said, you can program it yourself: before calling process, read image_src_x and image_src_y and depending on the values, adapt the ratio settings for both your cases.