Replies: 3 comments 6 replies
-
Browser image resizer could be a good solution, but faced this issue: ericnograles/browser-image-resizer#39 Wkwebview doesn't seem to support classic browser APIs to reduce files images. Could be great to have a polyfill or adaptative method to compress image file. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/autobotsrocks/cordova-imageResize or https://github.com/JoschkaSchulz/cordova-plugin-image-resizer seems to be a good start |
Beta Was this translation helpful? Give feedback.
-
This is another good resize library: https://github.com/nodeca/pica |
Beta Was this translation helpful? Give feedback.
-
Problem
Images coming from files inputs are basically not compressed.
These images can be very heavy, so it can be very long to upload with slow connexion (and even with a fast one).
Feature request
Have an api / simple method to compress images coming from files inputs on the front-end side before sending them to back-end.
It should be great to use native CPU on mobile, and not webview CPU which can be limited.
Having the same returned type of files as Camera would also be great ! (‘Base64’, ‘DataUrl’ or ‘Uri’... and not Filelist).
(Images coming from Camera can be compressed and reduced in size thanks to Camera api, no problem on this side)
Thanks a lot for your help !
Beta Was this translation helpful? Give feedback.
All reactions