Page 1 of 1

Setting transparency

Posted: Wed Dec 09, 2015 11:14 pm
by miksmith
Hi

I have a limited pallete PNG with a black object on whitebackground (254 254 252) which I would like to be transparent. Ive tried this command

nconvert -colors 256 -transpcolor 254 254 252 -resize 150 150 GOPR3908.png

which works in xnview (following those steps), but doesnt set the transparent colour in nconvert.

What am I doing wrong here?! Ive tried reordering the commands but that doesnt help either. Using "transparent" DOES work but the index number can change between images so it isnt ideal!

thanks

mike

Re: Setting transparency

Posted: Thu Dec 10, 2015 3:12 pm
by xnview
-transpcolor is to use with -mergealpha, there is no way in NConvert to change colormap