ivpusic / react-native-image-crop-picker

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

while cropping image instead of 3:3 grid view i want to change 4:3 grid view #1210

Open naveenraj092 opened 4 years ago

naveenraj092 commented 4 years ago

Version

Platform

Expected behaviour

i want to display the grid view of image while cropping 4:3 aspect ratio

Actual behaviour

currently its showing 3:3 aspect ratio grid view while cropping kindly check the attachment for clear reference

Screenshot 2020-01-15 at 7 31 55 AM

Attachments

// stacktrace or any other useful debug info

Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate

kapilkumar09 commented 4 years ago

@naveenraj092 It can be done by supplying height and width values while callng openCamera( ). I wanted 3:4 ratio so did this ImageCropPicker.openCamera({ cropping: true, width: deviceWidth, height: (deviceWidth * 3) / 4,

s4sebin commented 4 years ago

How can I keep the aspect ratio for crop? I found one option. freeStyleCropEnabled but its only available in android? so how can I add this feature in ios too.

cancerberoSgx commented 3 years ago

@s4sebin : seems freeStyleCropEnabled works in ios just fine