DumpyTron2084 has asked for the wisdom of the Perl Monks concerning the following question:

Hi perl monks...

I have two gif images, each of which is a 50x50 pixel square...

How would I use perl to combine them into a single gif image that is a 100x50 pixel rectangle? (Not an overlap, just place them adjacent to each other) I think the GD package can handle this, but my webserver might not install this package on their machine for me...

Any other ideas?

---------------------------------------
Just another gene jockey hacking perl...

Replies are listed 'Best First'.
Re: Merging two seperate gifs into one...
by strredwolf (Chaplain) on Jan 24, 2001 at 09:29 UTC
    use Image::Magick; I've posted an example on how to do it here.

    --
    $Stalag99{"URL"}="http://stalag99.keenspace.com";

Re: Merging two seperate gifs into one...
by dws (Chancellor) on Jan 24, 2001 at 13:49 UTC
    If you have an older version of GD (one from before the Unisys-inspired GIF purge), you're in luck, unless Unisys patent lawyers catch you before December 10, 2002, which is when the cursed patent expires.
Re: Merging two seperate gifs into one...
by clemburg (Curate) on Jan 24, 2001 at 14:19 UTC
Re: Merging two seperate gifs into one...
by eg (Friar) on Jan 24, 2001 at 08:39 UTC

    Use Image Magick and if you're webserver won't (or can't) install it for you, think about finding one who can.

      Then again, unless you actually need to do this from a CGI script (or similar), there's no need to petition your web provider to install it for you. Hie thee over to http://www.imagemagick.org and download and install it on your own machine!

Re: Merging two seperate gifs into one...
by repson (Chaplain) on Jan 24, 2001 at 09:20 UTC
    You could find out if the webserver has any commandline versions of imagemagik, GD or any other similar tools that exist, then use perl to drive it. That way you don't need to negotiate a module install (or try to do one in the directories accessible to you).
Re: Merging two seperate gifs into one...
by Beatnik (Parson) on Jan 24, 2001 at 14:35 UTC
    Fly can still do some GIF manipulation, altho it's probably coz it hasn't been updated in a LONG time :) As mentioned above, Thomas Boutell dropped GIF support in GD and added PNG support. Older version are still online.

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.