Add options to Image Resize task to only enlarge or shrink - VisualCron - Forum

Community forum

RMassey
2018-07-27T17:23:46Z
I like the Image Resize task, but sometimes I just need to shrink an image to a specific width and height. As it is now, any image will be enlarged or shrunk to fit the dimensions. It would be great if you could select one of these options:

1. Enlarge or shrink (current fuctionality)
2. Enlarge only (if both dimensions are less than the specified width and height)
3. Shrink only (if either dimension is greater than the corresponding specified width or height)

If that's problematic, an alternative suggestion is to have a task that returns the image size in pixels, like 230,500. The width and height could be comma-separated. I could then parse the output and use it to determine if I should call a resize task.

Thanks!
Scroll to Top