You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
directly have non rotated pictures without javascript manipulation
don't upload pictures of 200Mo on recent phones, making app crash
being able to set a max size of pictures taken with capacitor camera
Platforms
iOS
Android
Web
Request or proposed solution
When some users use he capacitor camera, the browser sometimes crashes due to very high resolution (due to modern phones 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.
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.
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Aarbel
changed the title
[Feature]: native camera resolution handeling (picture max size) to avoid app crashes
[Feature]: native camera resolution (and rotation) handeling (picture max size) to avoid app crashes
Apr 15, 2024
Aarbel
changed the title
[Feature]: native camera resolution (and rotation) handeling (picture max size) to avoid app crashes
[Feature]: native camera resolution, rotation and max size settings
Apr 15, 2024
Would be better to copy all the information in that issue since the information there is empty and could be closed because of that.
BTW, the 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, I guess you mean file size, would be good if you add that information to the ticket.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Description
Natively include settings to
Platforms
Request or proposed solution
When some users use he capacitor camera, the browser sometimes crashes due to very high resolution (due to modern phones 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.
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.
Additional Information
No response
The text was updated successfully, but these errors were encountered: