[magick-users] Creating Sprites for CSS

Bill Moseley moseley at hank.org
Wed Jul 30 20:26:03 PDT 2008


On Wed, Jul 30, 2008 at 07:51:19PM -0700, Bill Moseley wrote:

By the way,


>     $montage = $im->Montage(
>         mode => 'Concatenate',
>         tile => '1x',
>         background => 'none',
>     );

That leaves no padding between the images.

I can do this, instead:

    $montage = $im->Montage(
        mode => 'Concatenate',
        tile => '1x',
        background => 'none',
        border => 50,
        bordercolor => 'none',
    );

What I'd like is to do, of course, is just have some padding
below each image.  The above adds 50px of padding around each image.

I tried using

    border => '0x50'

to remove the padding on the sides, but PerlMagic complains that it's
not an integer.

Any way to just pad below each image?

Adding a transparent border does increase the total image size -- more
than I expected.  I was imagining little overhead.

-- 
Bill Moseley
moseley at hank.org
Sent from my iMutt



More information about the Magick-users mailing list