Search found 7 matches

by trident.cjr
2007-03-08T04:55:52-07:00
Forum: PerlMagick
Topic: Splice gravitation problems
Replies: 0
Views: 8779

Splice gravitation problems

The Splice command does not appear to be working correctly.

$x = $image->Splice(width=>"0", height=>"30", background=>'white', gravity=>'South');
http://bootpolish.net/images/uploads/im_forum_enginestartsmall_30.gif

$x = $image->Splice(width=>"0", height=>"60", background=>'white', gravity ...
by trident.cjr
2007-03-08T00:55:00-07:00
Forum: PerlMagick
Topic: Error: Flatten(ref)
Replies: 8
Views: 35872

Re: Error: Flatten(ref)

That's amazing thanks; I'm sure that will save a few grey hairs here and there!

Yes the fact that the $p was being used that way in the docs did occur to me; but unfortunately only once I had already started thinking along those lines.

Thanks again.

Chris.
by trident.cjr
2007-03-07T11:36:48-07:00
Forum: PerlMagick
Topic: Error: Flatten(ref)
Replies: 8
Views: 35872

Re: Error: Flatten(ref)

I appreciate that talking to yourself is the first sign of madness, but I think I've worked it out:
use Image::Magick;
$gifs = new Image::Magick(size => "218x176");
$x = $gifs->Read('xc:red', 'png:test.png');
warn "$x" if "$x";
$gif = $gifs->Flatten();
$x = $gif->Write('gif:test.gif');
warn "$x" if ...
by trident.cjr
2007-03-07T09:27:03-07:00
Forum: PerlMagick
Topic: Error: Flatten(ref)
Replies: 8
Views: 35872

Re: Error: Flatten(ref)

Further to my previous posts, my code is now:
my $gifs = new Image::Magick(size => "200x150");
$x = $gifs->Read('xc:red', 'png:test.png');
warn "$x" if "$x";
$x = $gifs->Flatten();
warn "$x" if "$x";
$x = $gifs->Write('gif:test.gif');
warn "$x" if "$x";
Unfortunately the Flatten command now fails ...
by trident.cjr
2007-03-06T08:44:03-07:00
Forum: PerlMagick
Topic: Error: Flatten(ref)
Replies: 8
Views: 35872

Re: Error: Flatten(ref)

My new code is as 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 ...
by trident.cjr
2007-03-06T08:41:37-07:00
Forum: PerlMagick
Topic: Error: Flatten(ref)
Replies: 8
Views: 35872

Re: Error: Flatten(ref)

I've received the following response on a separate mailing list:

$x = $gif->Flatten(background => 'LightSteelBlue');
warn "$x" if "$x";

From the docs:

The Flatten() method flattens a set of images. For example,
$p = $images->Flatten(background=>'none');

The sequence of images is replaced by ...
by trident.cjr
2007-03-06T03:44:06-07:00
Forum: PerlMagick
Topic: Error: Flatten(ref)
Replies: 8
Views: 35872

Error: Flatten(ref)

I have spent some rather frustrating days converting ImageMagick code into PerlMagick and am now successfully able to convert a simple JPEG into the following transparent PNG:

http://www.bootpolish.net/images/honda_accord.png

Unfortunately for use on our website I now need to convert it to a GIF ...