javascript - Phonegap navigator.camera.getPicture memory warning -


each time use phonegap api function create image on ios, after click on use photo warning. (the memory usage spikes 60mb)

my code:

navigator.camera.getpicture(onsuccess, onfail, { quality: 20 });  function onsuccess(imagedata) {     console.log('succ'); }  function onfail(message) {     alert('failed because: ' + message); } 

warning:

2014-05-17 10:56:35.122 cityfe[1845:60b] received memory warning. 2014-05-17 10:56:35.195 cityfe[1845:60b] succ 

is worried about?

try one

function getphoto(source) {     // retrieve image file location specified source     navigator.camera.getpicture(onsuccess, onfail, {         quality: 30,         targetwidth: 600,         targetheight: 600,         destinationtype: navigator.camera.destinationtype.file_uri,         correctorientation: true,         sourcetype: source     }); }  function onsuccess(imagedata) {     console.log('succ'); }  function onfail(message) {     alert('failed because: ' + message); } 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -