Transparency in the BG when object has the same color as BG?
Posted: 2011-02-21T13:52:20-07:00
Alright, I'm doing all the icons in an specific folder become transparent.
Here's one example of the icon: http://i.imgur.com/31xND.png
As you can see, the background is white, and there are white elements inside the icon.
Here's the code I used in a batch file:
http://i.imgur.com/d8nNr.png
Not bad, as you can see, until you put it somewhere that has a grey background. It removed the white elements inside the icon.
Photoshop background eraser tool does an AMAZING job at that. However, there are over 10.000 files like that, is there any way on earth to preserve the white elements inside the icons?
Thanks.
Here's one example of the icon: http://i.imgur.com/31xND.png
As you can see, the background is white, and there are white elements inside the icon.
Here's the code I used in a batch file:
Here's the result:for /f %%a in ('dir /b *.png') do C:\TestIco\imagik\convert %%a -fuzz 10%% -transparent white png32:alpha_%%a
pause
http://i.imgur.com/d8nNr.png
Not bad, as you can see, until you put it somewhere that has a grey background. It removed the white elements inside the icon.
Photoshop background eraser tool does an AMAZING job at that. However, there are over 10.000 files like that, is there any way on earth to preserve the white elements inside the icons?
Thanks.