Christopher Roberts wrote:

Hi

my $gif = new Image::Magick(size=>"400x300");

$x = $gif->Read('png:test.png');
warn "$x" if "$x";

Glad to see someone tests for errors.

$x = $gif->Read('xc:red'); # Does this qualify as a second image?
warn "$x" if "$x";

No, this just wipes out test.png.

You'll need a new IM object.

Try (I'm guessing, although I know Read can take N images):
$x = $gif->Read('png:test.png', 'xc:red'); # Or maybe in reverse order.
warn "$x" if "$x";
$x = $gif -> Flatten(); # Swap image order above depending in Flatten's behaviour.
warn "$x" if "$x";
$x = $gif -> Write(...);
warn "$x" if "$x";

$x = $gif->Flatten(background => "none"); # Do I still need the background
attribute?
warn "$x" if "$x";

I'm guessing not. The Flatten will combine the 2 objects above.

--
Ron Savage
[EMAIL PROTECTED]
http://savage.net.au/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to