Crop no scale up
Hi,
Would a pull request that adds an option for the following be accepted?
I am looking for a way to crop an image but not scale it up if it is smaller than the request size. So for example:
Image is 1000 x 50 Requested is 500 x 100 Result I want is a crop to 500 x 50
Similar to fit-in this would be a special option (maybe no-upscale) to not scale up small images only crop them if one side is larger than the requested size. For a size smaller like 500 x 25 it would resize the image normally.
A PR would be welcomed! There is already the upscale() logic for fit-in. This would be an additional no_upscale() logic for those resize option that are NOT fit-in, including
HALIGNis horizontal alignment of crop. Accepts left, right or center, defaults to centerVALIGNis vertical alignment of crop. Accepts top, bottom or middle, defaults to middlesmartmeans using smart detection of focal points
This issue is stale because it has been open 30 days with no activity. Remove the stale label or add a comment, or this issue will be closed in 15 days. You can always re-open if you still feel this is still an issue. Tag @cshum for more information.
This issue was closed because it has been stale for 15 days with no activity.