Hi,

How can I use this module to conditionally resize a picture. Something like this, resize the picture to 450px wide keeping the aspect ratio. If the height of the picture is bigger than 750px after the resizing, then keep down scaling until its height is 750px.

I would be very happy to if someone can tell me how to do it.

Thank you...

Comments

fietserwin’s picture

Status: Active » Closed (works as designed)

Resize always keeps the aspect ratio. So you can define both the maximum width and height in the effect data and the effect will make sure that the result is within the given boundaries.

hgurol’s picture

Ohh great, all I needed was to use the scale option rather than the resize. Thank you so much.

fietserwin’s picture

Correct, my fault. It is indeed the "Scale effect" that always retains the aspect ratio.