You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If image EXIF include rotation and application uses "image-orientation: none" then image will be shown in cropper squished, cropper messing up / swapping image height and width.
Windows 10, Browsers: FF & Chrome
In our application we use
image, img {
image-orientation: none;
}
We use images with and without EXIF information. EXIF information sometimes includes image rotation - this is the case when we have trouble. Images without EXIF and images with EXIF but without rotation seems to be ok,
We and our customers have this problem and it is critical for our business.
I have it debugged.
The problem caused by using naturalWidth and naturalHeight HTML5 image properties.
This is one of the consequences of changed default value of "image-orientation" style attribute from "none" to "from-image". Browsers FF and Chromium.
Now when cropper requesting "natural" attributes of the image with non zero rotation in EXIF and image under "image-orientation: none" browser provide wrong information.
We used this image file for testing:
Expected behavior: image appear in cropper editor with correct aspect ratio/proportions
Actual behavior: on screenshot you can see, that cropper assign width to height and height to width, image looks super wide, squished,
The text was updated successfully, but these errors were encountered:
If image EXIF include rotation and application uses "image-orientation: none" then image will be shown in cropper squished, cropper messing up / swapping image height and width.
Windows 10, Browsers: FF & Chrome
In our application we use
image, img {
image-orientation: none;
}
We use images with and without EXIF information. EXIF information sometimes includes image rotation - this is the case when we have trouble. Images without EXIF and images with EXIF but without rotation seems to be ok,
We and our customers have this problem and it is critical for our business.
I have it debugged.
The problem caused by using naturalWidth and naturalHeight HTML5 image properties.
This is one of the consequences of changed default value of "image-orientation" style attribute from "none" to "from-image". Browsers FF and Chromium.
Now when cropper requesting "natural" attributes of the image with non zero rotation in EXIF and image under "image-orientation: none" browser provide wrong information.
We used this image file for testing:
Expected behavior: image appear in cropper editor with correct aspect ratio/proportions
Actual behavior: on screenshot you can see, that cropper assign width to height and height to width, image looks super wide, squished,
The text was updated successfully, but these errors were encountered: