You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/10/31 10:53:31 UTC

[GitHub] [cordova-plugin-camera] eastwillie edited a comment on issue #501: Fixed corrupted image on ios 13 when using camera

eastwillie edited a comment on issue #501: Fixed corrupted image on ios 13 when using camera
URL: https://github.com/apache/cordova-plugin-camera/pull/501#issuecomment-548313802
 
 
   @mevinDhun 
   Here is my code and after I take a photo, there was an error:
   finalize:2667: image destination must have at least one image.
   Seems to me that the picture hasn't been saved into tmp somehow? Or I made a config mistake?
   
   > 
   > `openCamera(camera = true) {
   >             const options = {
   >                 quality: 50,
   >                 targetWidth: 750,
   >                 targetHeight: 750,
   >                 destinationType: window.Camera.DestinationType.FILE_URI,
   >                 sourceType: camera ? window.Camera.DestinationType.FILE_URI : window.Camera.PictureSourceType.SAVEDPHOTOALBUM,
   >                 encodingType: window.Camera.EncodingType.JPEG,
   >                 mediaType: window.Camera.MediaType.PICTURE,
   >                 allowEdit: true,
   >                 correctOrientation: true,
   >             };
   >             navigator.camera.getPicture((imageUri) => {
   >                 this.$emit('upload', {
   >                     success: true,
   >                     uri: [imageUri],
   >                 });
   >             }, () => {
   >                 this.$emit('upload', {
   >                     success: false,
   >                     uri: [],
   >                 });
   >             }, options);
   >         },`
   > 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org