Click here to get back home

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

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to get GIF support with Perl-GD library? (Can't locate object method "newFromGif") Francesco Moi 06-05-2007
Posted by Francesco Moi on June 5, 2007, 4:22 am
Please log in for more thread options


Hi.

Using Perl v5.8.3 on Linux, I'm trying to install GD interface for
Perl (made by Lincoln Stein).
I installed GD, zlib, jpeg-6b and freetype from sources (the very last
versions).

When executing script, I get this error message:
-----
Can't locate object method "newFromGif" via package "GD::Image" at ./
test.pl line 6.
-------

Line 6:
------
$srcimage = GD::Image->newFromGif("myimage.gif");
------

I know GIF is not supported by official GD libraries, but is it
possible to get it via another way?

Thank you very much.


Posted by Bianka Martinovic on June 5, 2007, 4:38 am
Please log in for more thread options


Francesco Moi schrieb:

> I know GIF is not supported by official GD libraries, but is it
> possible to get it via another way?

As far as I know, GIF support was stripped from the GD module due to
copyright/license cost issues. I think you need ImageMagick for this.

Greetings, Bianka

Posted by Bianka Martinovic on June 5, 2007, 4:39 am
Please log in for more thread options


Francesco Moi schrieb:

> I know GIF is not supported by official GD libraries, but is it
> possible to get it via another way?
>
Uhm... you may use an old version of GD which supports GIF. (But you'll
loose other features then.)

Greetings, Bianka

Posted by Sherm Pendley on June 5, 2007, 6:27 am
Please log in for more thread options



> Francesco Moi schrieb:
>
>> I know GIF is not supported by official GD libraries, but is it
>> possible to get it via another way?
>>
> Uhm... you may use an old version of GD which supports GIF.

You've got it backwards - old versions of GD do *not* support GIF. More
recent versions, released after the expiration of GIF-related patents, do
support GIF.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net

Posted by Mumia W. on June 5, 2007, 6:04 am
Please log in for more thread options


On 06/05/2007 03:22 AM, Francesco Moi wrote:
> Hi.
>
> Using Perl v5.8.3 on Linux, I'm trying to install GD interface for
> Perl (made by Lincoln Stein).
> I installed GD, zlib, jpeg-6b and freetype from sources (the very last
> versions).
>
> When executing script, I get this error message:
> -----
> Can't locate object method "newFromGif" via package "GD::Image" at ./
> test.pl line 6.
> -------
>
> Line 6:
> ------
> $srcimage = GD::Image->newFromGif("myimage.gif");
> ------
>
> I know GIF is not supported by official GD libraries, but is it
> possible to get it via another way?
>
> Thank you very much.
>

You didn't mention what Linux distribution you are using. I've installed
Debian Sarge, and the "newFromGif" method exists on my system's GD. I
installed the libgd-gd2-perl package.


Similar ThreadsPosted
Can't locate object method "ymd" via package... August 3, 2007, 6:14 am
Pg.pm Question - Can't locate object method driver October 31, 2004, 9:17 pm
Can't locate object method "new" via package "Net::SMTP" November 2, 2004, 6:36 pm
GD::Image: Can't locate object method "newFromJpeg" April 1, 2005, 2:51 am
Tk::Browser, "Can't locate object method 'Construct'" January 16, 2008, 4:47 am
Can't locate object method "blocking" via package "IO::Handle" June 20, 2005, 8:38 am
Can't locate object method "newFromJpeg" via package "GD::Image" December 19, 2005, 3:03 am
ant locate object method _session_channel via package Net::SSH::Perl::SSH1 July 13, 2006, 6:05 pm
Cant locate object method _session_channel via package Net::SSH::Perl::SSH1 July 13, 2006, 6:15 pm
Can't locate loadable object August 4, 2005, 12:18 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap