[Feature]: native camera max weight settings #2080
Labels
platform: android
platform: ios
platform: web
type: feature request
A new feature, enhancement, or improvement
Description
Need: to natively include settings to
= don't upload pictures of 200Mo on recent phones, making app crash
Platforms
Request or proposed solution
When some users use he capacitor camera (phones, tablets, laptops), the browser sometimes crashes due to very high resolution (due to modern high resolution cameras).
We are now handling the pictures compression / resize with javascript, but browser hardly manipulate pictures of 200Mo in a mobile webview, causing app crashes.
Camera plugin has correctOrientation option to have non rotated pictures that works on Android and iOS.
Also has width and height options for the pixel size, the best would also be to define maximum file size (weight) in Mo.
Alternatives
Javascript alternatives are not good, because mobile web browsers most of the time don't have enough RAM to handle this kind of pictures.
Example of code using capacitor camera plugin today (it should me muuuuuch simpler):
Cf ionic-team/capacitor#7401
The text was updated successfully, but these errors were encountered: