Everything works great except processing PNG files. It crashes.
After some research, I have installed the extra png libraries (libpng-1.5.0.tar.gz and lpng150.zip) from http://www.imagemagick.org/download/delegates/ and re-compiled ImageMagick. Still no luck, except it gives a different error.-sh-3.2$ identify -ping main-feature.png
identify: no decode delegate for this image format `main-feature.png' @ error/constitute.c/ReadImage/532.
-sh-3.2$ convert -list configure
Path: /usr/local/lib/ImageMagick-6.6.7/config/configure.xml
DELEGATES bzlib gs jpeg lcms2 lzma tiff x11 zlib
-sh-3.2$ identify -ping main-feature.png
Segmentation fault
Grateful if someone can give me a hint. Thanks.
P.S. The above command line was for testing purpose only. I am building a Rails application that requires Rmagick gem and Paperclip. The actual error message was-
<NotIdentifiedByImageMagickError: /tmp/stream20110223-25605-r8dgk.png is not recognized by the 'identify' command.>
-sh-3.2$ convert -list configure
Path: /usr/local/lib/ImageMagick-6.6.7/config/configure.xml
Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99 -std=gnu99
CFLAGS -fopenmp -g -O2 -Wall -pthread
CONFIGURE ./configure '--prefix=/usr/local' '--with-bzlib=yes' '--with-fontconfig=yes' '--with-freetype=yes' '--with-gslib=yes' '--with-gvc=yes' '--with-jpeg=yes' '--with-jp2=yes' '--with-png=yes' '--with-tiff=yes'
COPYRIGHT Copyright (C) 1999-2011 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib freetype gs jpeg jng lcms2 lzma png tiff x11 zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontpath= --with-perl=no
EXEC-PREFIX /usr/local
FEATURES OpenMP
HOST x86_64-unknown-linux-gnu
LDFLAGS -L/usr/local/lib
LIB_VERSION 0x667
LIB_VERSION_NUMBER 6,6,7,9
LIBS -lMagickCore -llcms2 -ltiff -lfreetype -ljpeg -lgs -lpng -lXext -lXt -lSM -lICE -lX11 -llzma -lbz2 -lz -lm -lgomp -lpthread
NAME ImageMagick
PCFLAGS -fopenmp
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 2011-04-13
VERSION 6.6.7
WEBSITE http://www.imagemagick.org
Path: [built-in]
Name Value
-------------------------------------------------------------------------------
NAME ImageMagick
-sh-3.2$