no png support

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
spencer82

no png support

Post by spencer82 »

Hi

I updated my server to Debian Lenny, PHP Version 5.2.6, ImageMagic 6.6.4-8 2010-10-03 and imagick 3.0.0.

But I haven't png support.
What can I do?
libpng12-0 is installed.

Thanks!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: no png support

Post by fmw42 »

You have to install libpng before recompiling IM and it must be installed in the location where IM knows about it. I am no expert on configuration issues, but you can check if IM know about png by

convert -list configure

and look at the line starting with DELEGATES.

If IM and libpng are not in the same directory (typically /usr/bin or /usr/local/bin) then you may have to use one of the advanced settings to tell IM where your libpng is located. see http://www.imagemagick.org/script/advan ... lation.php
spencer82

Re: no png support

Post by spencer82 »

There are two values in der DELEGATES line: png zlib
Is that correct?

During ./configure :


checking for PNG...
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_get_io_ptr in -lpng... yes
checking if PNG package is complete... yes

But still no png support (identify -list format)
spencer82

Re: no png support

Post by spencer82 »

I have solved my problem:

Updating the g++ compiler, make distclear, configure, make, make install.

Stupid compiler ^^
Post Reply