Ron Savage wrote:
> From the docs:
> The Flatten() method flattens a set of images.
> a) Where is your 'sequence of images'?
I had noticed that in the docs, but I thought that the transparency was one
image, with the image itself being the other. Apologies for my ignorance.
> b) Try Flatten with the 2nd image being a bkg
My new code follows:
my $gif = new Image::Magick(size=>"400x300");
$x = $gif->Read('png:test.png');
warn "$x" if "$x";
$x = $gif->Read('xc:red'); # Does this qualify as a second image?
warn "$x" if "$x";
$x = $gif->Flatten(background => "none"); # Do I still need the background
attribute?
warn "$x" if "$x";
$x = $gif->Write(filename=>'gif:' . 'test.gif');
warn "$x" if "$x";
Still gives me the same Flatten(ref) error! I've even tried creating a new
image and Reading that in instead of the xc:red line, but still no joy. I
tried using the Append statement after the two reads, but that failed with
Image::Magick=ARRAY(0x197a72c).
I'm obviously well and truly off the mark and would be grateful for any
guidance!
Thanks again
Chris Roberts
Important:
This email is sent on behalf of Trident Garages Ltd (www.tridentgarages.co.uk).
Its contents are confidential to the intended recipient and may be legally
privileged. If you are not the intended recipient: (1) you must not disclose,
copy or distribute its contents to any other person, nor use its contents in
any way; (2) please contact Trident Garages on +44 (0) 1932 874411 quoting the
name of the sender and the addressee, then delete it from your system. Please
accept our apologies for the inconvenience.
Trident has scanned this email for viruses but does not accept any
responsibility once this email has been transmitted. You should scan
attachments (if any) for viruses.
No contract may be concluded on behalf of Trident Garages Ltd, nor service of
process accepted, by email.
Trident Garages Ltd is registered in England no. 764299. Registered office at
Guildford Road, Ottershaw, Surrey KT16 0NZ
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users