ios - jQuery Mobile - Resize image before uploading -
ios - jQuery Mobile - Resize image before uploading -
i'm working in jquery mobile app user can take pictures (with iphone) , upload online.
but iphone image big, big, 2448x3264 on pixels size , 3mb file size.
is there way cut down image locally on phone , when user click upload button image uploaded reduced size? 640x480 , less 3mb?
you can accomplish after using canvas resize javascript library:
https://github.com/gokercebeci/canvasresize
it resizes image in browser , uses ajax send resized image information. there total illustration provided - check index.html file on git page, illustration php file receiving uploaded image information.
jquery ios jquery-mobile
Comments
Post a Comment