Page 1 of 1

mogrify: no decode delegate for this image format (PNG)

Posted: 2008-04-18T10:17:27-07:00
by jbain
Hello,

We just installed and compliled the Unix version of ImageMagick 6.4.0 yesterday and we are having great difficulty getting it to run. I have a feeling that all it will take is creating a new environment variable or adding a path to an existing env variable.

I have the following environment variables set:
export MAGICK_HOME=/opt/freeware
export PATH=/opt/freeware/bin:$PATH
export LIBPATH=/opt/freeware/lib:$LIBPATH
export MAGICKCORE_CONFIGURE_PATH=/opt/freeware/lib/ImageMagick-6.4.0/config:/opt/freeware/share/ImageMagick-6.4.0/config:/opt/freeware/.magick:/opt/freeware/lib/ImageMagick-6.4.0
export MAGICK_TMPDIR=/tmp
export AF_LD_LIBRARY_PATH=/opt/freeware/lib:$AF_LD_LIBRARY_PATH

I run the following mogrify command:
mogrify -resize 1024x768 'Javalin_label08041410230713105736000.png'

I get the following results:
mogrify: no decode delegate for this image format `Javalin_label08041410230713105736000.png'.

As a step to debug this I ran the same mogrify command with -debug all and the following was returned.

********************************* START of DEBUG DUMP **************************************
2008-04-18T12:06:49-05:00 0:01 0.000u 6.4.0 Configure mogrify[2117814]: utility.c/unknown/809/Configure
Command line: mogrify {-debug} {all} {-resize} {1024x768} {-quality} {80%} {Javalin_label08041410230713105736000.png}
2008-04-18T12:06:49-05:00 0:01 0.000u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/lib/ImageMagick-6.4.0/config/coder.xml"
2008-04-18T12:06:49-05:00 0:01 0.000u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/ImageMagick-6.4.0/config/coder.xml"
2008-04-18T12:06:49-05:00 0:01 0.000u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/doc/ImageMagick-6.4.0/coder.xml"
2008-04-18T12:06:49-05:00 0:01 0.000u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/ImageMagick-6.4.0/coder.xml"
2008-04-18T12:06:49-05:00 0:01 0.000u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/home/users/jbain/.magick/coder.xml"
2008-04-18T12:06:49-05:00 0:01 0.000u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "coder.xml"
2008-04-18T12:06:49-05:00 0:01 0.000u 6.4.0 Configure mogrify[2117814]: coder.c/unknown/634/Configure
Loading coder map "/opt/freeware/share/ImageMagick-6.4.0/config/coder.xml" ...
2008-04-18T12:06:49-05:00 0:01 0.010u 6.4.0 Module mogrify[2117814]: module.c/unknown/1074/Module
Searching for module "PNG" using filename "png.la"
2008-04-18T12:06:49-05:00 0:01 0.020u 6.4.0 Module mogrify[2117814]: module.c/unknown/479/Module
Searching for coder module file "png.la" ...
2008-04-18T12:06:49-05:00 0:01 0.020u 6.4.0 Locale mogrify[2117814]: locale.c/unknown/498/Locale
Searching for locale file: "/opt/freeware/lib/ImageMagick-6.4.0/config/locale.xml"
2008-04-18T12:06:49-05:00 0:01 0.020u 6.4.0 Locale mogrify[2117814]: locale.c/unknown/498/Locale
Searching for locale file: "/opt/freeware/share/ImageMagick-6.4.0/config/locale.xml"
2008-04-18T12:06:49-05:00 0:01 0.020u 6.4.0 Locale mogrify[2117814]: locale.c/unknown/498/Locale
Searching for locale file: "/opt/freeware/share/doc/ImageMagick-6.4.0/locale.xml"
2008-04-18T12:06:49-05:00 0:01 0.020u 6.4.0 Locale mogrify[2117814]: locale.c/unknown/498/Locale
Searching for locale file: "/opt/freeware/share/ImageMagick-6.4.0/locale.xml"
2008-04-18T12:06:49-05:00 0:01 0.020u 6.4.0 Locale mogrify[2117814]: locale.c/unknown/498/Locale
Searching for locale file: "/home/users/jbain/.magick/locale.xml"
2008-04-18T12:06:49-05:00 0:01 0.020u 6.4.0 Locale mogrify[2117814]: locale.c/unknown/498/Locale
Searching for locale file: "locale.xml"
2008-04-18T12:06:49-05:00 0:01 0.020u 6.4.0 Configure mogrify[2117814]: locale.c/unknown/831/Configure
Loading locale map "/opt/freeware/lib/ImageMagick-6.4.0/config/locale.xml" ...
2008-04-18T12:06:49-05:00 0:01 0.020u 6.4.0 Configure mogrify[2117814]: locale.c/unknown/831/Configure
Loading locale map "/opt/freeware/lib/ImageMagick-6.4.0/config/english.xml" ...
2008-04-18T12:06:49-05:00 0:01 0.110u 6.4.0 Exception mogrify[2117814]: module.c/unknown/1089/Exception
unable to load module `/opt/freeware/lib/ImageMagick-6.4.0/modules-Q16/coders/png.la': file not found
2008-04-18T12:06:49-05:00 0:01 0.120u 6.4.0 Blob mogrify[2117814]: blob.c/unknown/2356/Blob
read 3 magic header bytes
2008-04-18T12:06:49-05:00 0:01 0.120u 6.4.0 Module mogrify[2117814]: module.c/unknown/1074/Module
Searching for module "PNG" using filename "png.la"
2008-04-18T12:06:49-05:00 0:01 0.120u 6.4.0 Module mogrify[2117814]: module.c/unknown/479/Module
Searching for coder module file "png.la" ...
2008-04-18T12:06:49-05:00 0:01 0.120u 6.4.0 Exception mogrify[2117814]: module.c/unknown/1089/Exception
unable to load module `/opt/freeware/lib/ImageMagick-6.4.0/modules-Q16/coders/png.la': file not found
2008-04-18T12:06:49-05:00 0:01 0.120u 6.4.0 Cache mogrify[2117814]: cache.c/unknown/2162/Cache
destroy
2008-04-18T12:06:49-05:00 0:01 0.120u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/lib/ImageMagick-6.4.0/config/magic.xml"
2008-04-18T12:06:49-05:00 0:01 0.120u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/ImageMagick-6.4.0/config/magic.xml"
2008-04-18T12:06:49-05:00 0:01 0.120u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/doc/ImageMagick-6.4.0/magic.xml"
2008-04-18T12:06:49-05:00 0:01 0.120u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/ImageMagick-6.4.0/magic.xml"
2008-04-18T12:06:49-05:00 0:01 0.120u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/home/users/jbain/.magick/magic.xml"
2008-04-18T12:06:49-05:00 0:01 0.120u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "magic.xml"
2008-04-18T12:06:49-05:00 0:01 0.120u 6.4.0 Configure mogrify[2117814]: magic.c/unknown/679/Configure
Loading magic map "/opt/freeware/share/ImageMagick-6.4.0/config/magic.xml" ...
2008-04-18T12:06:49-05:00 0:01 0.130u 6.4.0 Module mogrify[2117814]: module.c/unknown/1074/Module
Searching for module "PNG" using filename "png.la"
2008-04-18T12:06:49-05:00 0:01 0.130u 6.4.0 Module mogrify[2117814]: module.c/unknown/479/Module
Searching for coder module file "png.la" ...
2008-04-18T12:06:49-05:00 0:01 0.130u 6.4.0 Exception mogrify[2117814]: module.c/unknown/1089/Exception
unable to load module `/opt/freeware/lib/ImageMagick-6.4.0/modules-Q16/coders/png.la': file not found
2008-04-18T12:06:49-05:00 0:01 0.130u 6.4.0 Module mogrify[2117814]: module.c/unknown/1074/Module
Searching for module "PNG" using filename "png.la"
2008-04-18T12:06:49-05:00 0:01 0.130u 6.4.0 Module mogrify[2117814]: module.c/unknown/479/Module
Searching for coder module file "png.la" ...
2008-04-18T12:06:49-05:00 0:01 0.130u 6.4.0 Exception mogrify[2117814]: module.c/unknown/1089/Exception
unable to load module `/opt/freeware/lib/ImageMagick-6.4.0/modules-Q16/coders/png.la': file not found
2008-04-18T12:06:49-05:00 0:01 0.140u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/lib/ImageMagick-6.4.0/config/delegates.xml"
2008-04-18T12:06:49-05:00 0:01 0.140u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/ImageMagick-6.4.0/config/delegates.xml"
2008-04-18T12:06:49-05:00 0:01 0.140u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/doc/ImageMagick-6.4.0/delegates.xml"
2008-04-18T12:06:49-05:00 0:01 0.140u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/opt/freeware/share/ImageMagick-6.4.0/delegates.xml"
2008-04-18T12:06:49-05:00 0:01 0.140u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "/home/users/jbain/.magick/delegates.xml"
2008-04-18T12:06:49-05:00 0:01 0.140u 6.4.0 Configure mogrify[2117814]: configure.c/unknown/482/Configure
Searching for configure file: "delegates.xml"
2008-04-18T12:06:49-05:00 0:01 0.140u 6.4.0 Configure mogrify[2117814]: delegate.c/unknown/1165/Configure
Loading delegate map "/opt/freeware/lib/ImageMagick-6.4.0/config/delegates.xml" ...
2008-04-18T12:06:49-05:00 0:01 0.150u 6.4.0 Exception mogrify[2117814]: constitute.c/unknown/396/Exception
no decode delegate for this image format `Javalin_label08041410230713105736000.png'
mogrify: no decode delegate for this image format `Javalin_label08041410230713105736000.png'.
********************************** END of DEBUG DUMP **************************************

After combing through this debug dump I saw that it could not find the the png.la file:
unable to load module `/opt/freeware/lib/ImageMagick-6.4.0/modules-Q16/coders/png.la': file not found

This error doesn't make any sense because there is a file at that exact path. I can even go there and open it. NOTE: I have NOT made any changes to this file.

So, that is where I am at and I am stuck.

Can someone please shed some light on this for me?

Re: mogrify: no decode delegate for this image format (PNG)

Posted: 2008-04-18T13:35:42-07:00
by fmw42
Check to see if you have the png delegate installed

convert -list configure

You should see a line something like the following depending upon what delegates have been installed:

DELEGATES bzlib fontconfig freetype gs jpeg jp2 lcms lqr openexr png tiff x11 xml zlib


If you do not see png in the list, then you need to install its delegate library. You can get many of them at:

http://www.imagemagick.org/download/delegates/

Re: mogrify: no decode delegate for this image format (PNG)

Posted: 2008-04-18T13:39:56-07:00
by jbain
thank you for your reply.

I have checked and png is in the DELEGATES string.

Re: mogrify: no decode delegate for this image format (PNG)

Posted: 2008-04-18T13:45:32-07:00
by jbain
To be more specific, following is the result of the configure command:

CC xlc_r
CFLAGS -qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include -D_THREAD_SAFE
CONFIGURE ./configure --prefix=/opt/freeware --mandir=/opt/freeware/man --enable-shared --enable-static --with-modules --with-magick_plus_plus --with-threads --without-perl --without-dps
COPYRIGHT Copyright (C) 1999-2008 ImageMagick Studio LLC
CPPFLAGS -I/opt/freeware/include/ImageMagick
CXX xlC_r
CXXFLAGS -qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include -D_THREAD_SAFE
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib fontconfig freetype jpeg jp2 lcms png tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS 'CC=xlc_r' 'CFLAGS=-qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include' 'CXX=xlC_r' 'LDFLAGS=-L/opt/freeware/lib' --disable-deprecate --with-quantum-depth=16 --with-dps=no --with-djvu=no --with-umem=no --with-fontpath= --with-lqr=no
EXEC-PREFIX /opt/freeware
HOST powerpc-ibm-aix5.1.0.0
LDFLAGS -L/opt/freeware/lib -L/opt/freeware/lib -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/opt/freeware/lib:/usr/vac/lib:/usr/lib:/lib -lfreetype -lz -L/opt/freeware/lib
LIB_VERSION 0x640
LIB_VERSION_NUMBER 6,4,0,3
LIBS -lMagickCore -llcms -ltiff -lpng -lfreetype -ljpeg -L/opt/freeware/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lpthreads
NAME ImageMagick
PCFLAGS
PREFIX /opt/freeware
QuantumDepth 16
RELEASE_DATE 04/04/08
VERSION 6.4.0
WEBSITE http://www.imagemagick.org

Re: mogrify: no decode delegate for this image format (PNG)

Posted: 2009-03-25T03:03:02-07:00
by vmahendra
hi jbain

i had installed the imagemagick last night but as similar i also stuck with the same image converstion errors so i had donloadeds the jpeg delegate and install it...

but when i worte the command configure there still no new delegate added.

Pl let me know how do u i install any delegate on my linux box??

Even my imagemagick is higher version then u but still there are very less delegate in compare to urs..why it is??

Configure list:-
Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99
CFLAGS -fopenmp -g -O2 -Wall -W -pthread
CONFIGURE ./configure
COPYRIGHT Copyright (C) 1999-2009 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick
CXX g++
CXXFLAGS -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontconfig=no --with-gslib=no --with-fontpath= --with-rsvg=no --with-xml=no
EXEC-PREFIX /usr/local
HOST i686-pc-linux-gnu
LDFLAGS -L/usr/local/lib
LIB_VERSION 0x650
LIB_VERSION_NUMBER 6,5,0,6
LIBS -lMagickCore -lz -lm -lgomp -lpthread
NAME ImageMagick
PCFLAGS -fopenmp
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 2009-03-24
VERSION 6.5.0
WEBSITE http://www.imagemagick.org

thnx in advance
-vmahendra