MaxWidth & MaxHeight options are not available in Instructions in ImageResizer 3.4.2

183 Views Asked by At

Can you please tell me when I use Instructions class in place of ResizeSettings how to use MaxWidth & MaxHeight.

Thanks in advance.

Mohammad

1

There are 1 best solutions below

0
On BEST ANSWER

Use mode=max with width and height instead.

maxwidth & maxheight are still supported in the URL API (and through Instructions["maxwidth"]), but to encourage use of the more consistent width/height/mode syntax we omitted the convenience property.