Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
mdibango
Post
by mdibango » 2008-06-06T03:15:36-07:00
Hi ,
My problem is that i don't see how to convert a png image with a transparent background and keeping it transparent.
With
Code: Select all
convert -type Grayscale "picture.png" "picture_nb.png"
transparency become black background.
If anyone can help.
Thank you
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2008-06-06T12:08:31-07:00
here is an example
create color image with transparent background
convert logo: -transparent white logot.png
change to gray with transparent background
convert logot.png -colorspace gray logotg.png
or
convert logot.png -channel RGBA -matte -colorspace gray logotg.png
mdibango
Post
by mdibango » 2008-06-08T01:03:17-07:00
It's working
thanks a lot
anthony
Posts: 8883 Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia
Post
by anthony » 2008-06-09T19:27:17-07:00