react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
Video dimensions are inverted
Version
Tell us which versions you are using:
- react-native-image-crop-picker v0.35.2
- react-native v0.63.4
Platform
Tell us to which platform this issue is related
- iOS
Expected behaviour
Callback after selecting video should return correct video dimensions.
Actual behaviour
Callback after selecting video always returns a height smaller than width, regardless of orientation.
Steps to reproduce
Here is the code used
ImagePicker.openCamera({
mediaType: "video",
compressVideoPreset: "HighestQuality",
})
.then((image) => {
console.log(image);
})
.catch((e) => {
console.log(e);
});
Regardless of compress preset used, results are the same. Height is always lower than width, no matter the orientation. #901 is a similar issue with images, but the workaround does not work with videos.
Any ideas?
same issue
+1
Seeing the same thing. Anyone got a work around? Seems like the video still carries the correct dimensions, but its meta data is just wrong. The playback is fine, but sizing for the correct aspect ratio is real difficult
Seeing the same thing. Anyone got a work around? Seems like the video still carries the correct dimensions, but its meta data is just wrong. The playback is fine, but sizing for the correct aspect ratio is real difficult
{ width: '100%', height: undefined, aspectRatio: 72 / 128, // 72, //16 / 10 }
+1
Facing same issue.
Encountering the same problem.