(none) imager-devel
/ help / lists / applications / search /
 

Re: GIF file size.

From: Tony Cook (
15398@xyz.molar.is)
Date: Mon 28 Nov 2005 - 22:50:51 GMT


Hi vsalik,

You need to rebuild Imager too.

Check that the list that C< perl Makefile.PL > outputs includes
gif:

       gif: includes found - libraries found

with both includes and libraries found.

Tony

On Mon, Nov 28, 2005 at 09:09:36AM -0500, vsalik wrote:
> Hi,
>
> I installed giflib as you suggested, but nothing changed - the output
> image is still uncompressed.
> Am I missing anything else?
>
> Thanks
>
> -----Original Message-----
> From: Tony Cook [mailto:15398@xyz.molar.is]
> Sent: Wednesday, November 23, 2005 5:29 PM
> To: vsalik
> Cc: imager-devel@molar.is
> 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:
>
> http://sourceforge.net/project/showfiles.php?group_id=102202
>
> Debian provides a giflib3 package, which works for most purposes (you
> can't write/read to/from scalars or via callbacks.)
>
> Tony
>
>