Page 1 of 1

delegate missing

Posted: 2012-02-02T21:32:03-07:00
by gshy
Hello,
I installed the ImageMagick on Ubuntu but it seems that the delegates are missing. I guess I didn't run the configure correctly (I cannot run sudo).
What options should I supply to configure so that it can figure out the delegates correctly? Thanks.


the following is the output of convert --list configure

Path: /U1/accounts/gshy/softwares/ImageMagick-6.7.2/share/ImageMagick-6.7.2/configure.xml

Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99 -std=gnu99
CFLAGS -fopenmp -g -O2 -Wall -pthread
CODER_PATH /U1/accounts/gshy/softwares/ImageMagick-6.7.2/lib/ImageMagick-6.7.2/modules-Q16/coders
CONFIGURE ./configure '--prefix=/U1/accounts/gshy/softwares/ImageMagick-6.7.2'
CONFIGURE_PATH /U1/accounts/gshy/softwares/ImageMagick-6.7.2/etc/ImageMagick/
COPYRIGHT Copyright (C) 1999-2011 ImageMagick Studio LLC
CPPFLAGS -I/U1/accounts/gshy/softwares/ImageMagick-6.7.2/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES
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 --with-perl=no
DOCUMENTATION_PATH /U1/accounts/gshy/softwares/ImageMagick-6.7.2/share/doc/ImageMagick-6.7.2/
EXEC-PREFIX /U1/accounts/gshy/softwares/ImageMagick-6.7.2
EXECUTABLE_PATH /U1/accounts/gshy/softwares/ImageMagick-6.7.2/bin
FEATURES OpenMP
FILTER_PATH /U1/accounts/gshy/softwares/ImageMagick-6.7.2/lib/ImageMagick-6.7.2/modules-Q16/filters
HOST x86_64-unknown-linux-gnu
LDFLAGS -L/U1/accounts/gshy/softwares/ImageMagick-6.7.2/lib
LIB_VERSION 0x672
LIB_VERSION_NUMBER 6,7,2,9
LIBRARY_PATH /U1/accounts/gshy/softwares/ImageMagick-6.7.2/lib/ImageMagick-6.7.2
LIBS -lMagickCore -lm -lgomp -lpthread -lltdl
NAME ImageMagick
PCFLAGS -fopenmp
PREFIX /U1/accounts/gshy/softwares/ImageMagick-6.7.2
QuantumDepth 16
RELEASE_DATE 2011-09-24
SHARE_PATH /U1/accounts/gshy/softwares/ImageMagick-6.7.2/share/ImageMagick-6.7.2
SVN_REVISION 5362
TARGET_CPU x86_64
TARGET_OS linux-gnu
TARGET_VENDOR unknown
VERSION 6.7.2
WEBSITE http://www.imagemagick.org

Path: [built-in]

Re: delegate missing

Posted: 2012-02-02T22:03:36-07:00
by fmw42
I am not an expert on installing on Linux. But I believe that if you installed IM from source, then you need to install any delegate that you think you will need before installing IM. Only the binaries come with pre-installed delegates. See http://www.imagemagick.org/download/delegates/ IM will have some image formats (such as gif), but many others (jpg, tiff, png, ghostscript, freetype, etc) need to be installed before installing IM. Pick out the delegates that you want, install them (be sure there are no errors and note that some delegates need supporting ones), then re-install IM. Then type

convert -list configure

and check the line DELEGATES to see if the have been installed.

Re: delegate missing

Posted: 2012-02-02T22:35:42-07:00
by anthony
Create a personal version of IM as per...
http://www.imagemagick.org/Usage/api/#personal

Re: delegate missing

Posted: 2012-02-03T10:29:58-07:00
by gshy
Actually all necessary program should have already installed since there is another version of ImageMagick (under the system directory /usr/bin/) works well. I wonder which configuration files specify the delegates. It seems there is another one besides delegates.xml. I check the /usr/lib/ImageMagick-6.5.7/config/delegates.xml, it doesn't contain the jpg either but it works well for jpg format.
Path: /usr/lib/ImageMagick-6.5.7/config/delegates.xml

Code: Select all

Delegate                Command
-------------------------------------------------------------------------------
    blender =>          "@BlenderDecoderDelegate@" -b "%i" -F PNG -o "%o""\n"convert" -concatenate "%o*.png" "%o"
        cgm =>          "ralcgm" -d ps -oC < "%i" > "%o" 2> "%Z"
 dng:decode =>          "ufraw-batch" --silent --wb=camera --black-point=auto --exposure=auto --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i"
        dvi =>          "dvips" -q -o "%o" "%i"
        eps<=>pdf       "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i"
        eps<=>ps        "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pswrite" "-sOutputFile=%o" "-f%i"
        fig =>          "fig2dev" -L ps "%i" "%o"
       gplt =>          "echo" "set size 1.25,0.62     set terminal postscript portrait color solid; set output "%o"; load "%i"" > "%u";"gnuplot" "%u"
        hdr =>          "ra_pfm" "%i" "%o"
        hpg =>          "hp2xx" -q -m eps -f `basename "%o"` "%i"     mv -f `basename "%o"` "%o"
       hpgl =>          "if [ -e hp2xx -o -e /usr/bin/hp2xx ]; then     hp2xx -q -m eps -f `basename "%o"` "%i";     mv -f `basename "%o"` "%o";   else     echo "You need to install hp2xx to use HPGL files with ImageMagick.";     exit 1;   fi"
        htm =>          "html2ps" -U -o "%o" "%i"
       html =>          "html2ps" -U -o "%o" "%i"
      https =>          "curl" -s -k -o "%o" "https:%M"
       ilbm =>          "ilbmtoppm" "%i" > "%o"
        man =>          "groff" -man -Tps "%i" > "%o"
mpeg:decode =>          "ffmpeg" -v -1 -vframes %S -i "%i" -vcodec pam -an -f rawvideo -y "%u.pam" 2> "%Z"
        pdf<=>eps       "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=epswrite" "-sOutputFile=%o" "-f%i"
        pdf<=>ps        "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pswrite" "-sOutputFile=%o" "-f%i"
        pic =>          "ra_pfm" "%i" "%o"
        png<= launch    "gimp" "%i"
        pnm<= ilbm      "ppmtoilbm" -24if "%i" > "%o"
        pov =>          "povray" "+i%i" -D0 +o"%o" +fn%q +w%w +h%h +a -q9 -kfi"%s" -kff"%n"\n"convert" -concatenate "%o*.png" "%o"
         ps<=>eps       "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=epswrite" "-sOutputFile=%o" "-f%i"
         ps<=>pdf       "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i"
         ps<= print     "lpr "%i"
        rad =>          "ra_pfm" "%i" "%o"
       rgba<= rle       "rawtorle" -o "%o" -v "%i"
       scan =>          "scanimage" -d "%i" > "%o"
      scanx =>          "scanimage" > "%o"
      shtml =>          "html2ps" -U -o "%o" "%i"
        svg =>          "wmf2eps" -o "%o" "%i"
        txt<=>ps        "enscript" -o "%o" "%i"
        wmf =>          "wmf2eps" -o "%o" "%i"

Re: delegate missing

Posted: 2012-02-03T18:03:11-07:00
by anthony
delegates are external programs. They should have no problems.

Coders and shared libraries however are built for the specific version of IM and MUST be the ones installed with the IM you are trying to run. That is why you need to install and run a 'personal' version for a non-system IM. That way it will use MAGICK_HOME to find configuration and delegates, while other environemtn PATH and LD_LIBRARY_PATH determines executables and shared libraries.

Read the link I gave an build it the way specified. Otherwise you will need to replace the system version.

I myself have 5 working ImageMagicks installed on my system. The latest IMv6 (package build from latest SVN download) as the system package, a IMv6 HDRI, and a IMv7 pre-alpha test. I also use a special command that lets me run IMv6 and IMv7 directly from the source directory (build without install) for faster development work.

The others I access via 'wrapper' scripts that sets up my environment before executing IM commands or IM scripts that run IM commands.