Skip to content

Video dimensions are invertedΒ #1504

@dariuscosden

Description

@dariuscosden

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions