Subject: | perl Makefile.PL --disable ungif doesn't disable libungif |
perl Makefile.PL --disable ungif is overridden by runtime checks for
libungif. This is on a debian sarge system (but happens the same on
debian etch and ubuntu gutsy):
After a vanilla Imager install (except for the --disable ungif bit), I'm
only getting minimally compressed from libungif:
ski@editorial:~/tmp/Imager-0.62$ perl -e 'use Imager; my $img =
Imager->new(); $img->read(file => "../../foo.png") or die
$img->errstr(); $img->write(file=>"foo.gif") or die $img->errstr()'; ls
-l foo*
-rw-r--r-- 1 ski web 3481728 2008-01-14 23:39 foo.gif
But if I remove the libungif packages, viola:
ski@editorial:~/tmp/Imager-0.62$ sudo dpkg -r libungif4-dev libungif4g
(Reading database ... 42584 files and directories currently installed.)
Removing libungif4-dev ...
Removing libungif4g ...
ski@editorial:~/tmp/Imager-0.62$ perl -e 'use Imager; my $img =
Imager->new(); $img->read(file => "../../foo.png") or die
$img->errstr(); $img->write(file=>"foo.gif") or die $img->errstr()'; ls
-l foo*
-rw-r--r-- 1 ski web 179561 2008-01-14 23:40 foo.gif
Bug if I then add the libungif packages back in, we're back to bloated
images:
ski@editorial:~/tmp/Imager-0.62$ sudo apt-get install libungif4-dev
libungif4g
[snip]
ski@editorial:~/tmp/Imager-0.62$ perl -e 'use Imager; my $img =
Imager->new(); $img->read(file => "../../foo.png") or die
$img->errstr(); $img->write(file=>"foo.gif") or die $img->errstr()'; ls
-l foo*
-rw-r--r-- 1 ski web 3481728 2008-01-14 23:47 foo.gif
This is a real drag because we have a lot of image manipulation software
on this machine, much of which depends on libungif, so we can't just
nuke it.