Page 1 of 1

Is there a way to transparent a picture?

Posted: Wed Nov 05, 2008 10:08 am
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?

Re: Is there a way to transparent a picture?

Posted: Wed Nov 05, 2008 10:27 am
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

Re: Is there a way to transparent a picture?

Posted: Wed Nov 05, 2008 11:00 am
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

Re: Is there a way to transparent a picture?

Posted: Wed Nov 05, 2008 12:37 pm
by xnview
For example:

Code: Select all

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