in reply to Re^2: GD module has no support for animated gifs
in thread GD module has no support for animated gifs

Install an up to date version of libgd on your system, then use cpan to build the perl module GD against it. You haven't specified which OS you are on, if it has a package manager you should be able to install it from there:

sudo pacman -S gd [sudo] password for marto: warning: gd-2.3.3-9 is up to date -- reinstalling resolving dependencies... looking for conflicting packages... Package (1) Old Version New Version Net Change extra/gd 2.3.3-9 2.3.3-9 0.00 MiB

Then just reinstall the module using cpan or otherwise. If on windows see instructions at https://github.com/libgd/libgd, or consider using Strawberry perl with all this sort of thing included.

Update: Sorry, just noticed the 'c:\' above.

Replies are listed 'Best First'.
Re^4: GD module has no support for animated gifs
by Anonymous Monk on Dec 23, 2025 at 13:08 UTC

    I am on windows using strawberry perl. I don't know if it has a package manager. A long time ago i was using Activestate perl but then the GD came with the distribution so i never had to deal with this topic. I found some websites that have information on installing libgd so maybe ill sort it out.

      It looks like your Strawberry perl may be more than 10 years old? There are a great deal of additional external tools & libraries that have had many updates for security and other reasons since then. Same goes for Perl itself. You should consider upgrading.

        I am confused. Why do you think the AM's Strawberry Perl is more than 10 years old? Strawberry's 5.42 PDL bundle comes with libgd which reports as 2.0303 with GD::LIBGD_VERSION (the numeric version) or 2.3.3 with GD::VERSION_STRING (the string version):
        C:\Users\pryrt>perl -MGD -le "print for GD::LIBGD_VERSION, GD::VERSION +_STRING" 2.0303 2.3.3

        IOW, if GD::LIBGD_VERSION reports 2.0303, it is v2.3.3, which, AFAICT from https://github.com/libgd/libgd/releases, is the newest GD version available, and is almost a decade newer than the 2.0.33 (2.0033) that is the minimum required version. update: since that's what the AM's libgd is reporting, it's not truly a version issue.

        I think the right path to go down is trying to dig into which options Strawberry compiles into the libgd, because I know that some of the options are not necessarily on by default.

        A few years back, I know I figured out how to build my own, because the one that came with Strawberry hadn't enabled windows BMP (IIRC -- it may have been some different image type, but I think it was BMP). Unfortunately, I don't have access to the machine with that build anymore, and any notes I may have had are also apparently only on that machine, so lost to me.

        But my guess is that really, Perl-GD is seeing that libgd doesn't have animated GIF enabled in the build, and is incorrectly labling that as "library too old" rather that "option not enabled".

        I don't have time this week to dig in any deeper, but if others haven't made progress this week, I'll try looking at it after the holiday busyness has calmed down.


        update: cross out intro sentences, because partway through my answer, I answered my own question: you thought it was more than 10 years old because GD incorrectly claimed "libgd 2.0.33 or higher required for animated GIF support" despite being v2.3.3 on the AM's machine.