ImageMagick FAIL: Execution failed; unexpected output when executing convert command. Output was ''.

823 views
Skip to first unread message

David

unread,
Aug 10, 2011, 12:12:13 AM8/10/11
to ResourceSpace
While doing a new Windows install, I came across this error message,
which had been previously reported without a solution in the group.

The problem apparently had to do with the space in "Program Files".
The default installation path for ImageMagick on Windows is something
like

c:\Program Files\ImageMagick-6.7.1-Q16\

However, this caused the installation check to fail. I was able to
solve the problem without changing anything major on the system by
creating a windows symbolic link to the ImageMagick directory by doing
something like

mklink /D imagemagick "c:\Program Files\ImageMagick-6.7.1-Q16"

in the root directory of C:\

and then changing the imagemagick path to c:\imagemagick

Hope this helps someone else out in the future. (Not sure if this is
something we could fix in the code - worth thinking about, perhaps.)

-David

DAMonkey

unread,
Aug 26, 2011, 2:26:19 PM8/26/11
to ResourceSpace
I'm getting this too, but on a mac install.

To boot, staticsync seems to be having issues with "convert" in IM:

"convert: no decode delegate for this image format..." (a jpeg)
"convert: missing an image filename..."

command line has imagemagick working just fine

any ideas?

ResourceSpace:~ astec$ convert -list configurePath: /opt/local/share/
ImageMagick-6.7.1/configure.xml

Name Value
-------------------------------------------------------------------------------
CC /usr/bin/gcc-4.0 -std=gnu99 -std=gnu99
CFLAGS -pipe -O2 -arch i386 -Wall -D_THREAD_SAFE -pthread
CODER_PATH /opt/local/lib/ImageMagick-6.7.1/modules-Q16/coders
CONFIGURE ./configure '--prefix=/opt/local' '--enable-shared' '--
enable-static' '--disable-ltdl-install' '--with-frozenpaths' '--
without-openexr' '--disable-hdri' '--with-dps' '--with-bzlib' '--with-
fontconfig' '--with-gslib' '--with-jpeg' '--with-lcms' '--with-png' '--
with-tiff' '--with-zlib' '--with-modules' '--with-xml' '--with-x' '--
without-perl' '--without-fpx' '--without-rsvg' '--without-lqr' '--with-
gs-font-dir=/opt/local/share/fonts/urw-fonts' '--with-gvc' '--with-
jbig' '--with-jp2' '--with-quantum-depth=16' '--with-wmf' 'CC=/usr/bin/
gcc-4.0' 'CFLAGS=-pipe -O2 -arch i386' 'LDFLAGS=-L/opt/local/lib -arch
i386' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/g++-4.0'
'CXXFLAGS=-pipe -O2 -arch i386'
CONFIGURE_PATH /opt/local/etc/ImageMagick/
COPYRIGHT Copyright (C) 1999-2011 ImageMagick Studio LLC
CPPFLAGS -I/opt/local/include/ImageMagick
CXX /usr/bin/g++-4.0
CXXFLAGS -pipe -O2 -arch i386 -D_THREAD_SAFE -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib fftw fontconfig freetype gs gvc jbig jpeg jng jp2
lcms2 lzma mpeg png tiff x11 xml wmf zlib
DISTCHECK_CONFIG_FLAGS 'CC=/usr/bin/gcc-4.0' 'CFLAGS=-pipe -O2 -arch
i386' 'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/g++-4.0' 'LDFLAGS=-
L/opt/local/lib -arch i386' --disable-deprecated --with-quantum-
depth=16 --with-umem=no --with-autotrace=no --with-fpx=no --with-
fontpath= --with-gs-font-dir=/opt/local/share/fonts/urw-fonts --with-
lqr=no --with-openexr=no --with-rsvg=no --with-perl=no
DOCUMENTATION_PATH /opt/local/share/doc/ImageMagick-6.7.1/
EXEC-PREFIX /opt/local
EXECUTABLE_PATH /opt/local/bin
FEATURES
FILTER_PATH /opt/local/lib/ImageMagick-6.7.1/modules-Q16/filters
HOST i386-apple-darwin9.8.0
LDFLAGS -L/opt/local/lib -L/opt/local/lib -arch i386 -L/opt/
local/lib
LIB_VERSION 0x671
LIB_VERSION_NUMBER 6,7,1,7
LIBRARY_PATH /opt/local/lib/ImageMagick-6.7.1
LIBS -lMagickCore -llcms2 -ltiff -lfreetype -ljpeg -lfftw3 -L/
opt/local/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -llzma -lbz2 -
lz -lm -lpthread -lltdl
NAME ImageMagick
PCFLAGS
PREFIX /opt/local
QuantumDepth 16
RELEASE_DATE 2011-08-26
SHARE_PATH /opt/local/share/ImageMagick-6.7.1
SVN_REVISION exported
TARGET_CPU i386
TARGET_OS darwin9.8.0
TARGET_VENDOR apple
VERSION 6.7.1
WEBSITE http://www.imagemagick.org

Path: [built-in]

Name Value
-------------------------------------------------------------------------------
NAME ImageMagick


On Aug 10, 12:12 am, David <ddwigg...@gmail.com> wrote:
> While doing a new Windows install, I came across this error message,
> which had been previously reported without a solution in the group.
>
> The problem apparently had to do with the space in "Program Files".
> The default installation path for ImageMagick on Windows is something
> like
>
> c:\Program Files\ImageMagick-6.7.1-Q16\
>
> However, this caused the installation check tofail. I was able to

Allison Stec

unread,
Sep 6, 2011, 9:13:04 AM9/6/11
to ResourceSpace
Giving this a bump...any help would be great

--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To post to this group, send email to resour...@googlegroups.com.
To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.


David Dwiggins

unread,
Sep 6, 2011, 5:34:08 PM9/6/11
to resour...@googlegroups.com
I have not seen this specifically, but it definitely seems like a problem with the imagemagick command being used in this context. I think we would need to capture the actual command being executed to figure this out.

Unfortunately I don't think we have any debugging code built in for this right now, so it would probably be a matter of finding the line that's causing the problem and sticking an echo statement before it to see what it's actually trying to execute. Since I haven't seen this on my systems, I can't really do anything to help debug it on my end.

(Developer musing: In the future, I wonder if we should create a custom shell_exec function that has the option of logging all external commands to the debug log so that it would be easier to track down problems like this.)

-David

Allison Stec

unread,
Sep 7, 2011, 10:57:41 AM9/7/11
to resour...@googlegroups.com
I bagged using Macports version of Imagemagick and went for the one bundled in Bitnami's mampstack.  I also checked out the latest subversion and the fail is gone.

I do have the old setup functioning, so if anyone wants to run me through some troubleshooting to try and target the problem spot let me know.

darcy christ

unread,
Mar 6, 2012, 2:16:49 AM3/6/12
to resour...@googlegroups.com
I'm getting this as well, using a homebrew version of imagemagick. convert works fine and displays the same output I would expect. The strange thing is that proc_open() doesn't seem to be able to get the output from convert -version, thus the fail.

Anyone have any experience debugging this kind of thing?

darcy christ

unread,
Mar 6, 2012, 8:23:32 PM3/6/12
to resour...@googlegroups.com
I got it to work by reinstalling all my homebrew packages in order: jpeg, ghostscript, imagemagick. This seemed to fix those libraries.


As well, I needed to comment out an apache env setting for MAMP, which was telling MAMP to use its own libraries. An alternative would have been to copy the libraries into MAMP's lib directory.

in /Application/MAMP/Library/bin/envvars, commented the following lines:

#DYLD_LIBRARY_PATH="/usr/local/bin:/usr/X11/lib:/Applications/MAMP/Library/lib:$DYLD_LIBRARY_PATH"
#export DYLD_LIBRARY_PATH

John HOLMES

unread,
Sep 15, 2012, 9:12:12 PM9/15/12
to resour...@googlegroups.com
I had the same problem. I didn't re-install anything, just commented out the two lines that you suggested below, and that solved my insallation check problem.
Thanks for posting your solution.

John HOLMES

unread,
Sep 17, 2012, 6:57:34 PM9/17/12
to resour...@googlegroups.com
Sorry, I don't think you'll find it on Linux.  This is an issue with MAMP on a mac.
Unfortunately I don't have any idea how to do this on Linux.


John
x  80618



On Sun, Sep 16, 2012 at 4:58 PM, BorderC <in...@phosphor.se> wrote:
I am experiencing the same issue with ImageMagick (and other PHP-addons) on a Linux-installation. Where should I look for the file in which to comment the described lines? Your advise is much appreciated.
--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To view this discussion on the web visit https://groups.google.com/d/msg/resourcespace/-/5OsExP8vhTwJ.

BorderC

unread,
Sep 18, 2012, 12:05:07 PM9/18/12
to resour...@googlegroups.com
OK, thanks!

Bergh Jon

unread,
Nov 13, 2012, 10:07:29 PM11/13/12
to resour...@googlegroups.com
Yep, worked here... comment out those lines, restart MAMP, good-to-go!

Thanks...

On Tuesday, September 18, 2012 11:05:07 AM UTC-5, BorderC wrote:
OK, thanks!
Reply all
Reply to author
Forward
0 new messages