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

I know it's possible to make GIFs with Perl, but is there a way to break a GIF down into it's indivitual pixel components? Could you do this with JPEGs and PNGs (and maybe even BMPs) as well? Any help would be greatly appreciated...

Replies are listed 'Best First'.
RE: GIF decomposition
by Anonymous Monk on Dec 31, 1999 at 00:07 UTC
    GD.pm
      Well, this is an old thread, but I am facing the same problem now... I need to get GIF files down to hex codes. I didn't want to install GD.pm for this, and even if I could/wanted, GD doesn't support GIFs anymore...

      Is there any documentation out there on the GIF format?
        Since GIF is somehow patented, I'm guessing GD removed GIF support so as to not have license worries.

        If you are on Unix or Linux, you might want to use an application like gif2png to convert the image to a more open format supported by GD.

        Barring that, a search on "gif specification" at google.com might be the place to start.

        There is also Image::Magick (aka PerlMagick).
Re: GIF decomposition
by nate (Monk) on Dec 31, 1999 at 00:10 UTC
    I've used GD.pm to make dynamic images in Perl -- also, you can use the GIMP::FU module to access gimp drawables. It's a bit more work, but ultimately more powerful.