[magick-users] Clip Path: Save as transparent
Anthony Thyssen
anthony at griffith.edu.au
Wed Mar 26 00:04:21 PDT 2008
Coleman Nitroy on wrote...
| Hello all,
|
| I am having an issue clipping a file and saving with a transparent
| background rather then a color. This is the command I run:
|
| convert Test.psd -fill none -colorspace rgb -draw "color 0 0 reset" -
| clip -colorspace rgb -draw "Image Copy 0,0 0,0 'Test.psd'"
| OutputFile.png
|
| This produces a clipped image but with a black background. I can say -
| fill white, or -fill someOtherColor and it works great but I want a
| transparent background. Is this possible?
|
| Thanks in advance,
|
| Coleman Nitroy
| coleman at nitroy.com
ASIDE: if you want the image to have transparency, you need to make
sure the transparent (matte/alpha) channel has been turned on in the
image immediateally after reading it in.
Add a -matte operator before the -fill setting.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
We are all Kosh! -- Ambassador Kosh, Bablyon 5
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list