I'm trying to compose a small image onto a larger image.  Problem is 
that the composition operation is changing black to white (but leaving 
the other colors OK) so the nice black outline of the small image is 
changed to white, making the image less distinct.

Here are the files:

$ identify small.tif
small.tif TIFF 368x328 368x328+0+0 DirectClass 8-bit 472.361kb
$ identify large.tif
large.tif TIFF 3067x404 3067x404+0+0 DirectClass 8-bit 5.28618mb

The ops are

        $small = Image::Magick->new;
        $small->Read( ... )
        $small->AdaptiveResize( width=>, height=> )
        $small->Transparent( color=>white )
        $large->Composite( image=>, x=>, y=> compose=Colorize );

In other areas of this work, I needed to complement colors for the same 
issue--I wanted black, but needed to specify white--but I was creating 
text and the work-around was trivial.  Here, I have a fixed image that I 
need to use.

Anybody able to apply a cluebat?

Alternately, how do I reverse black and white but none of the other colors.

-- 
David N. Lombard
Rossmoor, Orange County, CA
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to