ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.08k stars 1.55k forks source link

Crop size is not honored when the crop ratio is same as image ratio #1292

Open ghost opened 4 years ago

ghost commented 4 years ago

Version

Tell us which versions you are using:

Platform

Android

Expected behaviour

Open picker options were provided as width:320, height : 569. The result image should be of size width=320, height=569

Actual behaviour

The result image was of size width=180, height=320

Steps to reproduce

Use ImagePicker. openPicker with options as

{
   width: 320,
   height:  569,
   cropping: true,
   compressImageQuality:0.4,
   mediaType : 'photo',
}

Select the image from gallery with size as 2322x4128. The cropper opens. Do not change anything. The resulting image has size 180x320.

{ cropRect: { height: 4128, width: 2317, y: 0, x: 3 },
    modificationDate: '1590179747000',
    size: 4705,
    mime: 'image/jpeg',
    height: 320,
    width: 180,
    path: xxxxxx}

Note :

omid-ebrahimi commented 4 years ago

I have the same problem on Android.