[Magick-bugs] TransparentImage

omicronpersei8 at imagemagick.org omicronpersei8 at imagemagick.org
Tue May 8 06:40:51 PDT 2007


> Here is an example that reads a template tiff image, creates
> a transparent background and changes the color of content
> (which is black in the template image test.tif) to the desired color.
> The pixel(0,0) defines the BG/transparent color.

ImageMagick 6.3.4 appears to behave properly.  We created a blue rectangle
centered on top of a black rectange centered on a green background with
this command:

  convert -size 400x300 xc:green -fill black -draw "rectangle 50,50 350,250" \
    -fill blue -draw "rectangle 100,100 300,200" test.tif

After we run your program we get a blue rectange centered on top of a red
rectangle centered on a transparent background.


More information about the Magick-bugs mailing list