image_ratio_no_zoom_in problem

See all posts Reply

image_ratio_no_zoom_in problem new!
by Ross, 14 years, 1 month ago
Hi, Colin

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.
image_x = 400;

And to keep the aspect ratio correct:
image_ratio_y = true;

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:
image_ratio_no_zoom_in = true;

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.Reply
Re: image_ratio_no_zoom_in problem new!
by colin, 14 years, 1 month ago
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