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

[@capacitor/camera] add PNG image format option to allow picking transparent images #1630

Open
dmitry-salnikov opened this issue Jun 1, 2023 · 1 comment

Comments

@dmitry-salnikov
Copy link

Feature Request

Add image format option to allow picking images in PNG format, in order to keep transparency.

Plugin

@capacitor/camera

Description

For now, the JPEG format is used for both photos and picked images in native code. I want to have an option to specify PNG format, to allow user to pick transparent images from library because JPEG format doesn't support transparency.

Platform(s)

iOS, Android

Preferred Solution

Optimally, format option should be specified with three values:

  • JPEG (could be default option for compatibility reasons);
  • PNG;
  • Original - keep the original image format while re-encoding/resizing image.
@sksk008
Copy link

sksk008 commented Oct 30, 2023

do you found any solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants