We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tell us which versions you are using:
Resolution of cropped image is correct.
Call cropper with predefined image (I use "react-native-vision-camera": "^4.6.3" to take the picture)
Don't set width and height (because we don't want a fixed resolution. I the user crops the resolution of the output will not fit the ratio).
On android, the result makes sense (eg 1080x2400 for a portrait picture), but on iOS I get 150x200 for a similar picture.
const openCropper = useCallback((imagePath: string) => { ImagePicker.openCropper({ path: Platform.OS === 'ios' ? imagePath : `file://${imagePath}`, mediaType: 'photo', cropping: true, includeExif: false, writeTempFile: false, showCropFrame: true, cropperChooseColor: PRIMARY_COLOR, cropperActiveWidgetColor: PRIMARY_COLOR, cropperStatusBarColor: PRIMARY_COLOR, cropperToolbarColor: PRIMARY_COLOR, cropperToolbarWidgetColor: LIGHT_COLOR, cropperToolbarTitle: t('cropperToolbarTitle'), freeStyleCropEnabled: true, enableRotationGesture: true, compressImageQuality: 0.7 }).then(image => { // BUG this image resolution is never correct on iOS navigation.navigate('MediaPage', { imagePath: Platform.OS === 'android' ? image.path : `file://${image.path}`, }); }) .catch(() => { console.warn('user cancelled cropping') setIsLoading(false); }); }, [navigation]);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
Tell us which versions you are using:
Platform
Expected behaviour
Resolution of cropped image is correct.
Actual behaviour
Steps to reproduce
Call cropper with predefined image (I use "react-native-vision-camera": "^4.6.3" to take the picture)
Don't set width and height (because we don't want a fixed resolution. I the user crops the resolution of the output will not fit the ratio).
On android, the result makes sense (eg 1080x2400 for a portrait picture), but on iOS I get 150x200 for a similar picture.
Attachments
The text was updated successfully, but these errors were encountered: