I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-10-08 12:03:56-07 by swafo
format 'gif' not supported
This is the code that I am using:
#!/usr/bin/perl use strict; use Imager; my $img = Imager->new(file=>'logo.gif') or die Imager->errstr(); my $font = Imager::Font->new(file=>"Arial Narrow Bold.ttf"); $img->string(x => 88, y => 45, string => "TEST", font => $font, size => 14, aa => 1, color => 'black'); $img->write(file=>'logo_new.gif') or die $img->errstr;

And when I run it I get the following error:
format 'gif' not supported - formats bmp, cur, ico, jpeg, png, pnm, raw, sgi, tga, tiff available f +or reading at ./imager.pl line 6.

I then took a look at my install log and noticed this bit:
gif: includes not found - libraries not found ungif: includes not found - libraries not found jpeg: includes found - libraries found png: includes found - libraries found tiff: includes found - libraries found freetype2: configured via freetype-config T1-fonts: includes not found - libraries not found TT-fonts: includes not found - libraries not found w32: includes not found - libraries not found

I then saw the earlier post about installing extra libraries, so i installed the giflib library from sourcefourge.
But I am still getting the same error.

What other steps do I need to perform to be able to read and write GIFs with Imager?

Many thanks,
Alex
Direct Responses: 11566 | Write a response