Transpcolor option issue [Solved]

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
koala76
Posts: 3
Joined: Sat Jun 03, 2017 12:03 pm

Transpcolor option issue [Solved]

Post by koala76 »

Hi,

I try to remove the white background of a picture to make it transparent but the transpcolor option has no effect.
nconvert -out png -o temp2.png -truecolors -transpcolor 255 255 255 temp.jpg

Please see the example file in attachment.

Regards
Attachments
temp.jpg
temp.jpg (20.14 KiB) Viewed 2951 times
SAMSAM
Posts: 40
Joined: Sun Sep 15, 2019 5:14 pm

Re: Transpcolor option issue

Post by SAMSAM »

Try this:
-truecolors -set_alpha -transpcolor 255 255 255 -out png -o temp2.png temp.jpg
koala76
Posts: 3
Joined: Sat Jun 03, 2017 12:03 pm

Re: Transpcolor option issue

Post by koala76 »

Thanks, it works now !
Post Reply