Is there a way to transparent a picture?

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

Moderators: helmut, XnTriq, xnview

Post Reply
tireless
Posts: 23
Joined: Sun Oct 26, 2008 1:01 am

Is there a way to transparent a picture?

Post by tireless »

For example,make this picture transparent (the black color):

Image
test.jpg

I had tried:

Code: Select all

nconvert -transpcolor 0 0 0 -o %_new.jpg test.jpg
but didn't work.so,"-transpcolor" is used for what?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Is there a way to transparent a picture?

Post by xnview »

tireless wrote: Image
test.jpg

I had tried:

Code: Select all

nconvert -transpcolor 0 0 0 -o %_new.jpg test.jpg
but didn't work.so,"-transpcolor" is used for what?
It's to set transparency for 8bits colormap picture
Pierre.
tireless
Posts: 23
Joined: Sun Oct 26, 2008 1:01 am

Re: Is there a way to transparent a picture?

Post by tireless »

It's to se transparency for 8bits colormap picture
do you mean this:

1.

Code: Select all

nconvert -colors 8 -o %_8.png test.png
2.

Code: Select all

nconvert -transpcolor 0 0 0 -o %_new.png test_8.png
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Is there a way to transparent a picture?

Post by xnview »

For example:

Code: Select all

nconvert -colors 256 -transpcolor 0 0 0 -o %_256.png test.png
Pierre.
Post Reply