react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

Video dimensions are inverted

Open dariuscosden opened this issue 4 years ago • 7 comments

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?

dariuscosden avatar Jan 03 '21 12:01 dariuscosden

same issue

nmhoan76 avatar Feb 17 '21 02:02 nmhoan76

+1

atlkuk avatar Mar 04 '21 15:03 atlkuk

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

jamesdunay avatar Jun 08 '21 02:06 jamesdunay

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 }

azatTemirbek avatar Jun 23 '21 16:06 azatTemirbek

+1

rupesh-simformsolutions avatar Jul 14 '21 08:07 rupesh-simformsolutions

Facing same issue.

ArkaneKhan avatar Aug 18 '21 03:08 ArkaneKhan

Encountering the same problem.

truongnguyenceres avatar Nov 16 '23 04:11 truongnguyenceres