Page 1 of 1

Replacing Background Color on PNG to Transparent

Posted: Fri Mar 12, 2021 9:46 pm
by tplambeck
I am receiving PNG image files into my system and I need to change the background color to transparent. I run the ReplaceColorCommand but the background is unchanged. I checked the image with the HasCertainColorCommand and the image does not have the transparent color so I assume this is the issue? Is there a way to add the transparent color so I can use it to replace the existing background color or another solution?

Thanks

Re: Replacing Background Color on PNG to Transparent

Posted: Sat Mar 13, 2021 3:42 am
by tplambeck
I was able to resolve the issue by saving the image with the PngEncoder and reloading it. After that, I was able to make the background transparent.

Re: Replacing Background Color on PNG to Transparent

Posted: Wed Mar 17, 2021 9:47 am
by Alex
Hello,

PNG file can contain 32-bit color image with transparency. Let me know if you will have any question or problem.

Best regards, Alexander