PNG not Working on Ubuntu Even with Lib
Posted: 2010-05-18T18:14:21-07:00
I've downloaded ImageMagick-6.6.1-9.tar.gz and PerlMagick-6.59.tar.gz to compile and install on my Ubuntu Server 9.04. I can't simply install it from the repositories as that version has a bug where SetPixel always sets blue to 255. I'm following the ImageMagick and PerlMagick instructions:
ImageMagick: Install from Source
ImageMagick: PerlMagick, Perl API for ImageMagick
I have both the libpng12-0 and libpng12-dev packages installed. When I do ./configure for ImageMagick, it says "PNG --with-png=yes yes". "make check" says "All 12 tests passed", though nothing specifically mentions PNG. BTW, make check takes a very long time. I ran it using time, and I got real 49m5.795s, user 0m59.364s, sys 1m49.751s.
Now onto PerlMagick. Makefile.PL already has -I/usr/include/libpng12 in the $INC_magick variable, and that is a real directory on my system containing a couple *.h files. But after installing, make test here saysAnd when I try running a program that writes to a PNG file, it errors out with "Exception 420: no encode delegate for this image format `/[redacted]/colorcube.png' @ error/constitute.c/WriteImage/1152 at /usr/lib/cgi-bin/colorcubeslice.pl line 66."
So, does anyone know why PNG isn't working, or can anyone point me in a direction on finding out?
ImageMagick: Install from Source
ImageMagick: PerlMagick, Perl API for ImageMagick
I have both the libpng12-0 and libpng12-dev packages installed. When I do ./configure for ImageMagick, it says "PNG --with-png=yes yes". "make check" says "All 12 tests passed", though nothing specifically mentions PNG. BTW, make check takes a very long time. I ran it using time, and I got real 49m5.795s, user 0m59.364s, sys 1m49.751s.
Now onto PerlMagick. Makefile.PL already has -I/usr/include/libpng12 in the $INC_magick variable, and that is a real directory on my system containing a couple *.h files. But after installing, make test here says
Code: Select all
Failed Test Stat Wstat Total Fail List of Failed
t/png/read-16.t 5 5 1-5
t/png/read.t 6 6 1-6
t/png/write-16.t 5 5 1-5
t/png/write.t 6 6 1-6
So, does anyone know why PNG isn't working, or can anyone point me in a direction on finding out?