Filling transparent areas with a certain color

XnConvert Multi Platform - Windows, MacOSX, Linux

Moderators: XnTriq, helmut, xnview

Post Reply
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: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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
xn-about.JPG (18 KiB) Viewed 1751 times
Here is the image i want to edit in case you wanna try.
char532 532-s.png
cday
XnThusiast
Posts: 3973
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
(162.03 KiB) Downloaded 25 times
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Filling transparent areas with a certain color

Post by XnTriq »

Post Reply