On Thu, Jul 31, 2008 at 05:31:11PM +1000, Anthony Thyssen wrote:
> Bill Moseley on  wrote...
> | On Thu, Jul 31, 2008 at 02:01:15PM +1000, Anthony Thyssen wrote:
> | > Create the image using the above then 'Splice()' some extra space below
> | > that with gravity South.
> | 
> | I'm close.  Below adds the padding, but the background is black,
> | not transparent.
> | 
> |     $p->Read( @images );
> | 
> |     $p->Splice(
> |         width => 0,
> |         height => 50,
> |         gravity => 'South',
> |         background => 'none',
> |     );
> | 
> |     my $m = $p->Montage(
> |         mode => 'Concatenate',
> |         tile => '1x',
> |         background => 'none',
> |     );
> | 
> |     $m->Write( 'foo.gif' );
> | 
> | http://www.imagemagick.org/script/perl-magick.php shows
> | "background" as a possible attribute to Splice.
> | 
> | Am I doing something wrong?
> | 
> If it is black, you must turn on the alpha/matte channel in the image!

Could you provide code a example?  What you say makes sense, but
trying to translate that statement into code using the perl-magick
docs is not working. ;)

There's no alpha or matte option to Montage or Splice.

    http://www.imagemagick.org/script/perl-magick.php#montage
    http://www.imagemagick.org/script/perl-magick.php#manipulate

There are attributes for setting alpha and matte.  So, poking around
in the dark I tried this, with no change:

    $p->Read( '1.gif', '2.gif', '3.gif' );


    $p->Set( alpha => 'activate' );
    $p->Set( matte => 'True' );


    $p->Splice(
        width => 0,
        height => 100,
        background => 'none',
    );

    my $m = $p->Montage(
        mode => 'Concatenate',
        tile => '1x',
        background => 'none',
    );

    $m->Write( 'foo.gif' );

So, how does the code need to be written to make the spliced padding
transparent?

Thanks,

-- 
Bill Moseley
[EMAIL PROTECTED]
Sent from my iMutt

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to