|
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 |