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

Re: GIF file size.

From: Slaven Rezic (
15276@xyz.molar.is)
Date: Wed 23 Nov 2005 - 22:01:23 GMT

  • Next message: Tony Cook: "Re: GIF file size."

    "vsalik" <15230@xyz.molar.is> writes:

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

    I assume that the output is uncompressed, due to licensing problems
    with the LZW compression algorithm. Though the LZW patent is expired
    and could be used freely now.

    Regards,
            Slaven

    -- 
    Slaven Rezic - slaven <at> rezic <dot> de
        babybike - routeplanner for cyclists in Berlin
    	       handheld (e.g. Compaq iPAQ with Linux) version of bbbike
        http://bbbike.sourceforge.net
    



  •