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

feat(@capacitor/camera): option to save to gallery without compression #2035

Open
luke-rogers opened this issue Feb 20, 2024 · 0 comments
Open
Labels
platform: android platform: ios type: feature request A new feature, enhancement, or improvement

Comments

@luke-rogers
Copy link

luke-rogers commented Feb 20, 2024

Feature Request

Plugin

@capacitor/camera

Description

The camera plugin currently allows us to configure the maximum width and height, as well as the quality. This is useful as we can reduce bandwidth and backend storage costs by compressing the image on the user's device. However, with this, the original full-resolution image is lost as these are respected when saving the image to the user's gallery. It would be useful to optionally allow users to have the original high-res image saved to their camera roll instead of the compressed version.

Platform(s)

  • iOS
  • Android

Preferred Solution

Extend the existing saveToGallery parameter or, add a new one (e.g. saveToGalleryWithoutCompression) that causes the image saved to the gallery to be the original size and quality.

Alternatives

Don't set values for width, and height and set the quality as 1, then use an additional plugin or library to perform the on-device image compression.

Additional Context

n/a

@ionitron-bot ionitron-bot bot added the triage label Feb 20, 2024
@IT-MikeS IT-MikeS changed the title @capacitor/camera - option to save to gallery without compression feat(@capacitor/camera): option to save to gallery without compression Feb 23, 2024
@IT-MikeS IT-MikeS added the type: feature request A new feature, enhancement, or improvement label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: android platform: ios type: feature request A new feature, enhancement, or improvement
Projects
None yet
Development

No branches or pull requests

3 participants