react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

Android - Photo becomes colourful / corrupted when cropped

Open dylan-westbury opened this issue 9 months ago • 0 comments

Some particular photos becomes corrupted when cropped, etc. on Pixel 6 Pro API 33 emulator

Image

Image Image Image

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)

dylan-westbury avatar Mar 05 '25 20:03 dylan-westbury