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.
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.