I am using Cordova 2.6 Camera plugin, to get images from device gallery, I am getting them with base64 encoding and I was trying to compress them to a lower quality using "quality" option.
I noticed that the compression was not working and when I read Cordova documentation at https://github.com/apache/cordova-plugin-camera/blob/master/doc/index.md, I can read :
NOTE: Photo resolution on newer devices is quite good. Photos selected from the device's gallery are not downscaled to a lower quality, even if a quality parameter is specified. To avoid common memory problems, set Camera.destinationType to FILE_URI rather than DATA_URL.
In my case I only can use DATA_URL, since I am using the base64 encryption for image upload with third party webservice. I am also using only images from device gallery (not from camera itself). I am having some performance issues, mainly on Windows Phone. My application take too much time to handle the base64 data, due to image size (I am testing with big images saved in device gallery, but which were captured using the 5 MP or 8 MP phone's camera).
My question is there a solution to get the "quality" option working for gallery photos in Cordova plugin?
Is there any custom plugin or fork where we can compress the device gallery photos?
Is there any other alternative that you suggest? (for example custom native plugin that uses FILE_URI and return compressed image base64 encryption)