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/06/18 15:12:52 UTC

[GitHub] [cordova-plugin-camera] kotran88 opened a new issue #463: unable to create bitmap! error

kotran88 opened a new issue #463: unable to create bitmap! error 
URL: https://github.com/apache/cordova-plugin-camera/issues/463
 
 
   when I choose a picture from my gallery, it always goes to error saying unable to create bitmap!
   
   what may be the problem? 
   
    const options : CameraOptions={
         quality:50,
         targetHeight:600,
         targetWidth:600,
         sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
         destinationType:this.camera.DestinationType.DATA_URL,
         encodingType:this.camera.EncodingType.JPEG,
         mediaType:this.camera.MediaType.PICTURE,
         saveToPhotoAlbum:true
       }
       const result= this.camera.getPicture(options).then(url=>{
         console.log("url is : "+url);
        
   
         
       },(err) => {
         window.alert(err);
         console.log("clickGallery err: "+err);
     })

----------------------------------------------------------------
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