I'm trying to implement a paste event on Angular 7. I copied an Image with transparent background from windows app such as Powerpoint and pasted it in web app. I noticed that image loses the transparent background I've provided what I've done so far
handlePaste(event: any) {
let reader = new FileReader();
reader.readAsDataURL(event.clipboardData.files[0]);
//approach 1
reader.onload = (rdr) => {
console.log(reader.result);
}
//approach 2
reader.onload = (evt: any) => {
console.log(evt.target.result);
};
}
Is there anyway to maintain the transparent background on an image Thanks in advance