Issue trying to convert image - convert: no decode delegate

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
aryan05
Posts: 8
Joined: 2014-08-28T10:38:27-07:00
Authentication code: 6789

Issue trying to convert image - convert: no decode delegate

Post by aryan05 »

I tried doing the following steps

Step 1

untarred Imagemagick source file.

Step 2

cd ImageMagick-6.8.9-8

Step 3

./configure --prefix=/home/chan/softwares/usr/local

Step 4

make install

Step 5 command, trying to convert jpg to png image format.

chan@kpp-qa2-5343:~/softwares/usr/local/bin$ LD_LIBRARY_PATH=/home/chan/softwares/usr/local/lib /home/chan/softwares/usr/local/bin/convert -debug configure /home/chan/Pictures/testhomepage.jpg /home/chan/Pictures/testhomepage.png


Step 6 ERROR STACK


2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: utility.c/ExpandFilenames/945/Configure
Command line: /home/chan/softwares/usr/local/bin/convert {-debug} {configure} {/home/chan/Pictures/testhomepage.jpg} {/home/chan/Pictures/testhomepage.png}
2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/chan/softwares/usr/local/share/ImageMagick-6/magic.xml"
2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/chan/softwares/usr/local/lib/ImageMagick-6.8.9//config-Q16/magic.xml"
2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/chan/softwares/usr/local/etc/ImageMagick-6/magic.xml"
2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/chan/softwares/usr/local/share/doc/ImageMagick-6/magic.xml"
2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/chan/.config/ImageMagick/magic.xml"
2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/chan/.magick/magic.xml"
2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: magic.c/LoadMagicCache/773/Configure
Loading magic configure file "/home/chan/softwares/usr/local/etc/ImageMagick-6/magic.xml" ...
2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/chan/softwares/usr/local/share/ImageMagick-6/delegates.xml"
2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/chan/softwares/usr/local/lib/ImageMagick-6.8.9//config-Q16/delegates.xml"
2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/chan/softwares/usr/local/etc/ImageMagick-6/delegates.xml"
2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/chan/softwares/usr/local/share/doc/ImageMagick-6/delegates.xml"
2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/chan/.config/ImageMagick/delegates.xml"
2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/chan/.magick/delegates.xml"
2014-09-28T19:39:28-07:00 0:00.010 0.000u 6.8.9 Configure convert[11421]: delegate.c/LoadDelegateCache/1318/Configure
Loading delegate configuration file "/home/chan/softwares/usr/local/etc/ImageMagick-6/delegates.xml" ...
2014-09-28T19:39:28-07:00 0:00.020 0.000u 6.8.9 Configure convert[11421]: locale.c/LoadLocaleCache/1187/Configure
Loading locale configure file "/home/chan/softwares/usr/local/share/ImageMagick-6/locale.xml" ...
2014-09-28T19:39:28-07:00 0:00.020 0.000u 6.8.9 Configure convert[11421]: locale.c/LoadLocaleCache/1187/Configure
Loading locale configure file "/home/chan/softwares/usr/local/share/ImageMagick-6/english.xml" ...
convert: no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/501.
convert: no images defined `/home/chan/Pictures/testhomepage.png' @ error/convert.c/ConvertImageCommand/3187.

Let me know if you need any further clarifications from my end.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Issue trying to convert image - convert: no decode deleg

Post by fmw42 »

Did you install delegate libraries for image formats such as jpg, png, etc in the same location before you installed IM?

What do you get from

convert -version

Does it list delegates for jpg, png, etc?

When you install from source, you need to install all the delegates. If you install from binary, IM comes with most delegates preinstalled.

If you have delegates installed, then perhaps IM does not know where they are, so you need to configure with some extra arguments. See
http://www.imagemagick.org/script/advan ... #configure
aryan05
Posts: 8
Joined: 2014-08-28T10:38:27-07:00
Authentication code: 6789

Re: Issue trying to convert image - convert: no decode deleg

Post by aryan05 »

Output of convert -version
chan@kpp-qa2-5803:~/softwares$ LD_LIBRARY_PATH=/home/chan/softwares/usr/local/lib /home/chan/softwares/usr/local/bin/convert -version
Version: ImageMagick 6.8.9-8 Q16 x86_64 2014-09-27 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: jpeg

As you see below , i tried doing identify for jpeg file, and it throws an error for PNG format .
chan@kpp-qa2-5803:~/softwares$ LD_LIBRARY_PATH=/home/chan/softwares/usr/local/lib /home/chan/softwares/usr/local/bin/identify /home/chan/Pictures/testhomepage.jpg
identify: no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/501.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Issue trying to convert image - convert: no decode deleg

Post by fmw42 »

It appears that you need to install libpng and other delegates in the same place as where you have libjpg before installing IM.
aryan05
Posts: 8
Joined: 2014-08-28T10:38:27-07:00
Authentication code: 6789

Re: Issue trying to convert image - convert: no decode deleg

Post by aryan05 »

I tried to install "libpng-1.5.19.tar.xz" on my ubuntu

chan@kpp-qa2-5803:~/softwares/libpng-1.5.19$ ./configure --prefix=/home/chan/softwares/usr/local

chan@kpp-qa2-5803:~/softwares/libpng-1.5.19$ make
make: *** No targets specified and no makefile found. Stop.

chan@kpp-qa2-5803:~/softwares/libpng-1.5.19$ make install
make: *** No rule to make target `install'. Stop.

Any idea, why its not letting me install from libpng source!!
Is there any way i can install all needed delegates in one go? or how do i use binary version of Imagemagick to achieve the same.
My main idea is to install it in a specific path & also i should be able to carry out the folder onto other machines without installing again!!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Issue trying to convert image - convert: no decode deleg

Post by fmw42 »

Sorry I am not an expert on installation on Linux. I use MacPorts to install my delegates on my Mac and then install IM from source.

See
http://www.imagemagick.org/script/insta ... e.php#unix
http://www.imagemagick.org/script/advan ... lation.php

and

http://www.imagemagick.org/script/binary-releases.php
Post Reply