react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
Android - Photo becomes colourful / corrupted when cropped
Some particular photos becomes corrupted when cropped, etc. on Pixel 6 Pro API 33 emulator
This code will always cause issue
const options = {
quality: 0.45,
width: 300,
height: 400,
maxWidth: 300,
maxHeight: 400,
includeBase64: true,
cropping: true,
mediaType: 'photo',
smartAlbums: ['PhotoStream', 'Generic', 'Favorites', 'RecentlyAdded', 'UserLibrary', 'SelfPortraits', 'LivePhotos']
};
await ImagePicker.openPicker(options)
This code will always cause issue if cropping image
const options = {
compressImageMaxWidth: 500,
compressImageQuality: 0.5,
maxWidth: 300,
maxHeight: 400,
includeBase64: true,
cropping: true,
mediaType: 'photo',
smartAlbums: ['PhotoStream', 'Generic', 'Favorites', 'RecentlyAdded', 'UserLibrary', 'SelfPortraits', 'LivePhotos']
};
await ImagePicker.openPicker(options)