Tested on: Android 4.2 & Android 5.1.1
Plugin: https://github.com/apache/cordova-plugin-camera
When we import a PNG with an alpha (transparent) layer from library it adds a black background automatically.
Do you know how to replace that black background to a white one in base64 string returned by the plugin?
Code used:
var options = {
quality: 95,
destinationType: Camera.DestinationType.DATA_URL,
sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
allowEdit: true,
encodingType: Camera.EncodingType.PNG,
saveToPhotoAlbum: false
};