android - Cordova Camera plugin error when large image is re-size using targetWidth & targetHeight -
i having problem camera plugin in android using phonegap. app stop working when upload large images(2mb above) not when upload small size images.
here sample code:
function browse_image(){ navigator.camera.getpicture(onphotodatasuccess, onfail, { quality: 50, destinationtype: destinationtype.file_uri,sourcetype: picturesource.photolibrary, targetwidth: 600, targetheight: 600 }); }
the image trying used 2.27mb 2448x3264 pixels.
i aware when remove "targetwidth: 600 , targetheight: 600" plugin work will.
i know if there away make plugin work without removing targetwidth & targetheight option in plugin
any or suggestion appreciated!
Comments
Post a Comment