Dimensions flipped based on image orientation when cropping #1339
Unanswered
neolution-ch2
asked this question in
Q&A
Replies: 2 comments 3 replies
-
It sounds like the images are actually landscape but have the EXIF orientation mode set to rotate the images to portrait. Using the same dimensions across all should work or else use |
Beta Was this translation helpful? Give feedback.
1 reply
-
Checked it in a EXIF viewer, and you're right. I didn't know that. What do you mean "Using the same dimensions across all should work"? I use the same params for all pictures. Thanks for the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to create a gallery with pictures of different orientations. Mostly they are landscape but some of them are portraits. For the thumbnails I specified
width: 240
,height: 160
andrmode: crop
.And it worked for all landscape-oriented pictures. But for the ones in portrait orientation it flipped the specs upside down: it cropped the thumbnail with 160x240 (instead of 240x160).
I don't think it's a bug and intentional. But can someone explain to me what and why this is happening? And is there a way to avoid this behavior?
Beta Was this translation helpful? Give feedback.
All reactions