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.
You can use only one image_ratio_xxxx parameter at the same time.
image_ratio_no_zoom_in can work only if you have a image_x and a image_y set. In other words, you cannot have the "no zoom" feature if you use image_ratio_y.
It is however planned to fix this shortcoming in a future version.Reply
Thanks for your wonderful class.
I'm confused about the usage of image_ratio_no_zoom_in.
I am resizing my uploads to a certain size, 400 px wide.
And to keep the aspect ratio correct:
This works perfectly.
Now, if the uploaded image is LESS than the image_x width, I don't want to resize it because that will result in loss of quality.
So I'm using:
First of all, is this the correct setting to use to prevent upsizing a smaller image?
I'm using it but it doesn't change a thing. The smaller images are still being upsized to the image_x size.
Thanks in advance.
image_ratio_no_zoom_in can work only if you have a image_x and a image_y set. In other words, you cannot have the "no zoom" feature if you use image_ratio_y.
It is however planned to fix this shortcoming in a future version.