Set Background Color for PNG
Posted: Mon Apr 19, 2004 8:59 am
Hi,
i have a png icon collection and want to create disabled and selected icons. I managed to create disabled icons with
nconvert -grey 256 -transparent 0 -o %_disabled.png $*
but I found no way to set the background to a specified value to create a selected icon:
nconvert -canvas 100% 100% -bgcolor 0 0 255 -o %_selected.png
did not work as expected.
It would be nice to have a way to create rollover and pressed icons also, but thats not really important.
Thanx
Armin
i have a png icon collection and want to create disabled and selected icons. I managed to create disabled icons with
nconvert -grey 256 -transparent 0 -o %_disabled.png $*
but I found no way to set the background to a specified value to create a selected icon:
nconvert -canvas 100% 100% -bgcolor 0 0 255 -o %_selected.png
did not work as expected.
It would be nice to have a way to create rollover and pressed icons also, but thats not really important.
Thanx
Armin