Hi everyone
I would like to learn how to remove the white background from these PNGs since I have to do this almost weekly (skins from a game). I'd like to make to change the white background to transparent.
I've been trying but no success so far. Some help would be much appreciated!
Remove white background
Moderators: XnTriq, helmut, xnview
Re: Remove white background
XnConvert provides an action called “Replace color”, but you can't set the selected color to transparent.
Re: Remove white background
Thanks for the quick reply!
I've played around with the Replace color but, like you said, I couldn't set it to transparent.
This person on Reddit assured me a while back that he was using XnConvert to achieve this result. Unfortunately, he hasn't been active in a while. Can you confirm than none of your software can achieve what I'm looking for?
Re: Remove white background
Well, not in one go. Here's a quick-&-dirty example:
- 1st step
- Input: X:\Test\D1cs--FWkAALYKu.jpg
- Image → Change color depth
- Greyscale: 256
Dithering: None
- Greyscale: 256
- Map → Adjust
- Brightness: -126
Contrast: 127
Gamma: 1,00
- Brightness: -126
- Filter → Median Box
- Filter size: 13x13
- Filter → Gaussian blur
- Filter size: 13x13
- Output: X:\Test\D1cs--FWkAALYKu_Mask.png
- 2nd step
- Input: X:\Test\D1cs--FWkAALYKu.jpg
- Image → Change color depth
- 32 bits: 256
Alpha: 255
- 32 bits: 256
- Image → Add mask
- Mask: X:\Test\D1cs--FWkAALYKu_Mask.png
Opacity: 100
Color: R0/G0/B0
(•) Stretch mask
[×] Blur
[×] Use mask as alpha
- Mask: X:\Test\D1cs--FWkAALYKu_Mask.png
- Output: X:\Test\D1cs--FWkAALYKu_Result.png
Related topics:
- FAQ: How to set PNG transparency color?
- nConvert: Chroma Key (green screen) Removal/Replecement Nconvert
- XnView Classic: How to Replace a Color with Transparent
- XnView Classic: Cant change background image completely
- XnView MP: Chromakey feature