cleverappdesign opened a new issue #499: Black screen when select an image from gallery URL: https://github.com/apache/cordova-plugin-camera/issues/499 # Bug Report Black screen when select an image from gallery to edit ## Information Here's my code, when I tried to get an image from Gallery, it shows black screen. However, if I set `allowEdit` to `false`, it works. The image file size was `2MB`, there's no black screen when I reduce the file size to `170KB`. ``` takePhoto(sourceType: number, index: number) { const options: CameraOptions = { quality :100, destinationType :this.camera.DestinationType.DATA_URL, encodingType :this.camera.EncodingType.JPEG, mediaType :this.camera.MediaType.PICTURE, correctOrientation :true, sourceType :sourceType, allowEdit :true, targetWidth :500, targetHeight :500 } this.camera.getPicture(options).then( img => { this.photoList[index] = 'data:image/jpeg;base64,' + img console.log('Index: ', index) }, err => console.log('Errors: ', err) ) } ``` ### Environment, Platform, Device Happens on iPhone X, iPhon XR ### Version information * Ionic 3 * cordova-plugin-camera: 4.0.3, ## Checklist - [x] I searched for existing GitHub issues - [x] I updated all Cordova tooling to most recent version - [x] I included all the necessary information above
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
