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
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
The text was updated successfully, but these errors were encountered:
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
Feature Request
Plugin
@capacitor/camera
Description
The camera plugin currently allows us to configure the maximum
width
andheight
, as well as thequality
. 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)
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
, andheight
and set thequality
as 1, then use an additional plugin or library to perform the on-device image compression.Additional Context
n/a
The text was updated successfully, but these errors were encountered: