Open terrysahaidak opened 7 months ago
👋 @terrysahaidak Thanks for opening your issue here! If you find this package useful hit the star🌟!
This seems to be true also for the getVideoMetaData
but it does not have the orientation, here is an example response:
{"creationDate": "2024-04-02T20:49:56+0300", "duration": 3.0016666666666665, "extension": "mov", "height": 2160, "location": "", "size": 17938656, "width": 3840}
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 metadata