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
Filling transparent areas with a certain color
Moderators: XnTriq, helmut, xnview
-
- Posts: 11
- Joined: Thu Jul 30, 2020 3:59 pm
-
- Author of XnView
- Posts: 44355
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Filling transparent areas with a certain color
you can use 'change color depth' to replace alpha
Pierre.
-
- Posts: 11
- Joined: Thu Jul 30, 2020 3:59 pm
-
- Posts: 1
- Joined: Fri May 28, 2021 7:08 am
Re: Filling transparent areas with a certain color
'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.
I'm using XnConvert Version 1.90
Here is the image i want to edit in case you wanna try.
You do not have the required permissions to view the files attached to this post.
-
- XnThusiast
- Posts: 4115
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: Filling transparent areas with a certain color
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.
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.
You do not have the required permissions to view the files attached to this post.
-
- Moderator & Librarian
- Posts: 6363
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Filling transparent areas with a certain color
Adding two consecutive actions should do the trick:
Related:
- Change color depth: 32 bits
- Change color depth: 24 bits
Related: