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
Replacing Background Color on PNG to Transparent
Moderator: Alex
-
- Posts: 17
- Joined: Wed May 08, 2019 7:09 pm
-
- Posts: 17
- Joined: Wed May 08, 2019 7:09 pm
Re: Replacing Background Color on PNG to Transparent
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.
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: Replacing Background Color on PNG to Transparent
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
PNG file can contain 32-bit color image with transparency. Let me know if you will have any question or problem.
Best regards, Alexander