Filling transparent areas with a certain color

XnConvert Multi Platform - Windows, MacOSX, Linux
testperson
Posts: 11
Joined: Thu Jul 30, 2020 3:59 pm

Filling transparent areas with a certain color

Post by testperson »

Hi,

sorry if this thread already exist. I'm searching for a way to fill transparent areas with a certain color (like the option "replace color", just for transparency/alpha).

Everything I could find is the other way around (from color to transparency).

Can someone help? I've read about the way decreasing colour depth. However if the transparent areas turn white this way and then I replace all areas which are white, I would also replace areas which originally were white and not transparent.

So how can I do this?

Kind regards
User avatar
xnview
Author of XnView
Posts: 36286
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Filling transparent areas with a certain color

Post by xnview »

you can use 'change color depth' to replace alpha
Pierre.
testperson
Posts: 11
Joined: Thu Jul 30, 2020 3:59 pm

Re: Filling transparent areas with a certain color

Post by testperson »

Thank you :)
User avatar
isuma
Posts: 1
Joined: Fri May 28, 2021 7:08 am

Re: Filling transparent areas with a certain color

Post by isuma »

'change color depth' doesn't work for me. Whatever color I set to replace the transparency (alpha), the output always has white as the background.
xn-prob.JPG
I'm using XnConvert Version 1.90
xn-about.JPG
Here is the image i want to edit in case you wanna try.
char532 532-s.png
You do not have the required permissions to view the files attached to this post.
cday
XnThusiast
Posts: 3063
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Filling transparent areas with a certain color

Post by cday »

I can confirm the issue you report.

Note that images displayed on the forum larger than a certain pixel size are rescaled to a smaller version, the original image can be viewed by left-clicking on the displayed image. The smaller preview version lacks transparency and has an RGB 24-bit colour profile rather than paletted colour. To download the full image exactly as posted it is necessary to left-click on the displayed image and then right-click to save the file.

To avoid any confusion I am attaching the original image in a ZIP archive.

char532 532-s.png.zip
You do not have the required permissions to view the files attached to this post.
User avatar
XnTriq
Moderator & Librarian
Posts: 5897
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Filling transparent areas with a certain color

Post by XnTriq »