Re: How to get GIF support with Perl-GD library? (Can't locate object method "newFromGif")




"Francesco Moi" <francescomoi@xxxxxxx> wrote in message news:1181054164.783325.223480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Your knowledge is outdated. According to the GD FAQ, GIF support was
restored in version 2.0.38, released July 2004.

<http://www.libgd.org/FAQ#Does_gd_support_GIF_images.3F>

Yep, you're right, but no clue about how to configure gd to support
GIF:

-----------------
[]# ./configure --help
`configure' configures GD 2.0.34 to adapt to many kinds of systems.


Sorry if I'm missing the point(s) here but:

1) Sherm has told you that GIF support was restored in version 2.0.38 ... but you appear to be trying to build version 2.0.34. (IIRC, GIF support is now enabled by default and doesn't require any special config option - but I could be wrong about that.)

2) The original problem you reported about being unable to locate object method "newFromGif" has nothing to do with your version of the gd library, but everything to do with your version of the GD module. (At least I *think* that's the case ... if your version of GD has "newFromGif", but gd doesn't have GIF support, then I think the GD build process simply dies.)

All I can say with certainty is that you'll need to build a gd that supports the GIF format, and you'll need to build a GD that includes the "newFromGif" method.

Cheers,
Rob

.



Relevant Pages

  • Re: Error in Converting GIF Image to Black & White
    ... balck & white.It is working fine with JPEG files and PNG files.When it ... The reason I think is when I am extracting the RGB value from the ... GIF support was removed from the GD library in Version 1.6, ...
    (comp.lang.php)
  • Re: GD isnt outputting image data
    ... >> make sure that GD and libgd were built with gif support. ... as I can go the animated gif example in the docs perfectly. ... > I've added it to my test script and did the othe types as well and ... > $ perl Sites/gdtest.pl ...
    (perl.beginners)
  • Re: Compiling gd-2.0.33 on AIX 5.3
    ... ripped out due to patent issues with LZW compression routines. ... since 2.0.28 gd has had GIF support put back in. ...
    (comp.graphics.apps.gnuplot)
  • Re: PHP With GIF Support
    ... > means that open-source software can now include GIF support again. ... There is only a patent on the LZW compression algorithm, ...
    (Debian-User)