Re: GIF file size.
From: Tony Cook (firstname.lastname@example.org)
Date: Mon 28 Nov 2005 - 22:50:51 GMT
You need to rebuild Imager too.
Check that the list that C< perl Makefile.PL > outputs includes
gif: includes found - libraries found
with both includes and libraries found.
On Mon, Nov 28, 2005 at 09:09:36AM -0500, vsalik wrote:
> I installed giflib as you suggested, but nothing changed - the output
> image is still uncompressed.
> Am I missing anything else?
> -----Original Message-----
> From: Tony Cook [mailto:email@example.com]
> Sent: Wednesday, November 23, 2005 5:29 PM
> To: vsalik
> Cc: firstname.lastname@example.org
> Subject: Re: [Imager-devel]: GIF file size.
> On Wed, Nov 23, 2005 at 01:37:53PM -0500, vsalik wrote:
> > Hi,
> > I've been running a very simple test script:
> > my $img = Imager->new();
> > $img->read(file=>$in_name, type=>'gif')
> > or die "Cannot load $in_name: ", $img->errstr, "\n";
> > $img->write(file=>$out_name, type=>'gif')
> > # or die "Cannot write $out_name: ", $img->errstr, "\n";
> > The size of $in_name is a little bit more than 1K, but the size of
> > $out_name is about 30K!!!
> > Why? What am I doing wrong?
> As Slaven says, you're producing uncompressed GIFs.
> You need to install giflib instead of libungif.
> If your OS (or distribution) doesn't provide a giflib package then you
> can get source from:
> Debian provides a giflib3 package, which works for most purposes (you
> can't write/read to/from scalars or via callbacks.)