Hi Ron
Thank you so much for your further advice.
> Glad to see someone tests for errors.
When you make as many mistakes as I, it's necessary!
> 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.
Unfortunately the Flatten command then fails with:
Image::Magick=ARRAY(0x835daf4)
My code follows:
my $gifs = new Image::Magick(size => "200x150");
$x = $gifs->Read('xc:red', 'png:test.png'); # I believe this is the correct
order
warn "$x" if "$x";
$x = $gifs->Flatten();
warn "$x" if "$x";
$x = $gifs->Write('gif:test.gif');
warn "$x" if "$x";
Predictably enough, given the failure of the Flatten, I am left with an
animated gif.
Interestingly, if I change the Flatten command to match the docs...
$x = $gifs->Flatten(background => 'none');
.. I'm back to the Flatten(ref) error.
I have tried writing a background image and loading that instead of xc:red,
but it behaved identically to the above.
Any other thoughts?
Many thanks for helping me keep my sanity!
Chris.
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