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
When we get image metadata, it returns us imageWidth and imageHeight, but when we pick that image, the image picker returns flipped values. Since imageWidth and imageHeight are actually "default" orientation values. These values are matching the exif values where we have orientation.
I would assume that imageWidth and imageHeight would respect the orientation and would show the same values as image picker does, but the exif values should be the original values and the orientation if you really need it.
Platform
[] Android
iOS
React Native Version
0.72.9
React Native Compressor Version
1.8.24
Reproducible Steps And Demo
Take an image in portrait orientation on an iPhone
use expo image picker to get the image in JS with its width/height
use getImageMetaData to get metadata
the width and height in metadata are flipped
The text was updated successfully, but these errors were encountered:
Current behavior
When we get image metadata, it returns us imageWidth and imageHeight, but when we pick that image, the image picker returns flipped values. Since imageWidth and imageHeight are actually "default" orientation values. These values are matching the exif values where we have orientation.
Here is an example object:
And what picker returned me:
Expected behavior
I would assume that
imageWidth
andimageHeight
would respect the orientation and would show the same values as image picker does, but the exif values should be the original values and the orientation if you really need it.Platform
React Native Version
0.72.9
React Native Compressor Version
1.8.24
Reproducible Steps And Demo
getImageMetaData
to get metadataThe text was updated successfully, but these errors were encountered: