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
Set Background Color for PNG
Moderators: XnTriq, helmut, xnview
-
- Author of XnView
- Posts: 44616
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Set Background Color for PNG
-bgcolor is used to specify background color for rotate/canvas resize/...armin wrote: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.
You can use -transparent or -transpcolor.
Pierre.