Page 1 of 1

Issue trying to convert image - convert: no decode delegate

Posted: 2014-09-28T21:08:56-07:00
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.

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

Posted: 2014-09-28T21:37:04-07:00
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

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

Posted: 2014-09-29T11:27:26-07:00
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.

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

Posted: 2014-09-29T11:44:04-07:00
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.

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

Posted: 2014-09-29T12:03:17-07:00
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!!

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

Posted: 2014-09-29T12:16:10-07:00
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