Is it possible to have the image cropper scale an image down to fit the crop dimensions (which would then either pad vertically or horizontally), rather than what it currently does - fits the height of the crop and the rest be damned!
What I mean is this:
As you can see from the image, this is a particularly problematic issue for logos.
Is it at all possible to do this, even if I have to edit some Umbraco scripts?
You can apply query string parameters to your image URL that affect how it will be processed by ImageProcessor.
ImageProcessor.Web allows you to scale images both up and down with an excellent quality to size ratio. A maximum width and height can be set in the configuration to help protect you from DoS attacks.
Six different types of resizing methods are available:
Pad (default)
BoxPad (Added v4.4.0)
Crop
Min (Added v4.4.0)
Max
Stretch
Image Cropper - image scale-to-fit?
Is it possible to have the image cropper scale an image down to fit the crop dimensions (which would then either pad vertically or horizontally), rather than what it currently does - fits the height of the crop and the rest be damned!
What I mean is this:
As you can see from the image, this is a particularly problematic issue for logos.
Is it at all possible to do this, even if I have to edit some Umbraco scripts?
I know it can be done with the ImageProcessor service.
I do something like this on one of my sites:
http://localhost/media/123/imagename.jpg?width=700&height=700&mode=max
I would guess there is a way to add an override to the render to just change the crop mode. Not sure though.
You can apply query string parameters to your image URL that affect how it will be processed by ImageProcessor.
ImageProcessor.Web allows you to scale images both up and down with an excellent quality to size ratio. A maximum width and height can be set in the configuration to help protect you from DoS attacks.
Six different types of resizing methods are available:
Pad (default) BoxPad (Added v4.4.0) Crop Min (Added v4.4.0) Max Stretch
See the docs at:
http://imageprocessor.org/imageprocessor-web/imageprocessingmodule/resize/
is working on a reply...