The first image is the default without any extra parameters. This looks fine.
For the second image I pass a width & height. This gives the correct aspect ratio but the image is rotated.
In the third image I pass "&autorotate=true", which rotates my image correctly but breaks the aspect ratio.
The first 3 images give the correct crops, but are not rotated.
The 4th image I tried a different way but this does not give my crop. It just gives the original image.
How can I get the correct aspect ratio and image rotation with the Umbraco.MediaPicker? And how do I pass the rotation for the cropper?
Trying to figure out media picker, cropper, and autorotate parameter
Hello,
Testing out the media picker and image cropper in a basic example. In my example, I'm using an image with EXIF version 0221.
I have a document type 'Example' with an Umbraco.MediaPicker and an Umbraco.MediaCropper.
The content looks like this:
Printing the Umbraco.MediaPicker with this code:
This gives following result:
The first image is the default without any extra parameters. This looks fine. For the second image I pass a width & height. This gives the correct aspect ratio but the image is rotated. In the third image I pass "&autorotate=true", which rotates my image correctly but breaks the aspect ratio.
Then there is the Umbraco.MediaCropper:
Gives following result:
The first 3 images give the correct crops, but are not rotated. The 4th image I tried a different way but this does not give my crop. It just gives the original image.
How can I get the correct aspect ratio and image rotation with the Umbraco.MediaPicker? And how do I pass the rotation for the cropper?
Thanks for any help!
is working on a reply...