Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: native camera resolution, rotation and max size settings #7401

Closed
3 tasks done
Aarbel opened this issue Apr 15, 2024 · 3 comments
Closed
3 tasks done

[Feature]: native camera resolution, rotation and max size settings #7401

Aarbel opened this issue Apr 15, 2024 · 3 comments
Labels

Comments

@Aarbel
Copy link

Aarbel commented Apr 15, 2024

Description

Natively include settings to

  • 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

@Aarbel Aarbel added the triage label Apr 15, 2024
@Aarbel 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 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
@jcesarmobile
Copy link
Member

closing as duplicate of ionic-team/capacitor-plugins#2080

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.

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2024
@Aarbel
Copy link
Author

Aarbel commented Apr 15, 2024

Thanks @jcesarmobile, modifications added on the ticket ✅

Copy link

ionitron-bot bot commented May 15, 2024

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators May 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants