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
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.