OSX Lion で MacPorts を使用して ImageMagick を Ghostscript と通信させようとしましたが、それができませんでした。以前は Snow Leopard で正常に動作していましたが、移行アシスタント中に問題が発生しました。
とにかく、すべてのMacポートをアンストールし、現在Homebrewを使用しようとしています
Homebrew をインストールし、ImageMagick をインストールしてから Ghostscript をインストールしました。Imagemagick は (php 画像スクリプトと MAMP を使用して) 正常に動作していますが、Ghostscript は PDF を jpg に変換していません。「gs」が Imagemagick のデリゲートとしてリストされていないことがわかります。
関連するターミナル ダンプを次に示します。
convert -list デリゲート
パス: /usr/local/Cellar/imagemagick/6.7.7-6/etc/ImageMagick/delegates.xml
コマンドの委任
-------------------------------------------------- ------------------------------
Blender => "blender" -b "%i" -F PNG -o "%o""\n"convert" -concatenate "%o*.png" "%o"
cdr => "ユニコンバーター" "%i" "%o.svg"; mv "%o.svg" "%o"
cgm => "ralcgm" -d ps -oC "%o" 2> "%Z"
dng:decode => "ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i"
dvi => "dvips" -q -o "%o" "%i"
epsps "gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pswrite" "-sOutputFile=%o" "-f%i"
epspdf "gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i"
fig => "fig2dev" -L ps "%i" "%o"
hpg => "hp2xx" -q -m eps -f `basename "%o"` "%i"; mv -f `ベース名 "%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 "HPGL ファイルを ImageMagick で使用するには、hp2xx をインストールする必要があります。"; 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"
miff "ffmpeg" -v -1 -i "%i" -vframes %S -vcodec pam -an -f rawvideo -y "%u.pam" 2> "%Z"
pdfeps "gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=epswrite" "-sOutputFile=%o" "-f%i"
pdfps "gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pswrite" "-sOutputFile=%o" "-f%i"
plt => "echo" "set size 1.25,0.62; set terminal postscript portrait color solid; set output \'%o\'; load \'%i\'" > "%u";"gnuplot" "%u"
pnm "%o"
pov => "povray" "+i%i" -D0 "+o%o" +fn%q +w%w +h%h +a -q9 "-kfi%s" "-kff%n";" convert" -concatenate "%o*.png" "%o"
pseps "gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=epswrite" "-sOutputFile=%o" "-f%i"
pspdf "gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i"
rgba "scanimage" -d "%i" > "%o"
scanx => "scanimage" > "%o"
shtml => "html2ps" -U -o "%o" "%i"
sid => "mrsidgeodecode" -if sid -i "%i" -of tif -o "%o" > "%u"
svg => "rsvg-convert" -o "%o" "%i"
tiffps "enscript" -o "%o" "%i"
wmf => "wmf2eps" -o "%o" "%i"
doms-imac:~ dom$ convert -list delegate | grep --color -E '(eps|pdf)'
epsps "gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pswrite" "-sOutputFile=%o" "-f%i"
epspdf "gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i"
hpg => "hp2xx" -q -m eps -f `basename "%o"` "%i"; mv -f `ベース名 "%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 "HPGL ファイルを ImageMagick で使用するには、hp2xx をインストールする必要があります。"; exit 1; fi"
pdfeps "gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=epswrite" "-sOutputFile=%o" "-f%i"
pdfps "gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pswrite" "-sOutputFile=%o" "-f%i"
pseps "gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=epswrite" "-sOutputFile=%o" "-f%i"
pspdf "gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i"
wmf => "wmf2eps" -o "%o" "%i"
convert -list 構成
パス: /usr/local/Cellar/imagemagick/6.7.7-6/lib/ImageMagick/config/configure.xml
名前 値
-------------------------------------------------- ------------------------------
CC /usr/bin/clang
CFLAGS -D_THREAD_SAFE -D_THREAD_SAFE -pthread -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7 -Wall -D_THREAD_SAFE -pthread
CODER_PATH /usr/local/Cellar/imagemagick/6.7.7-6/lib/ImageMagick/modules-Q16/coders
CONFIGURE ./configure '--disable-osx-universal-binary' '--with-perl' '--prefix=/usr/local/Cellar/imagemagick/6.7.7-6' '--disable-dependency-tracking ' ' --enable-shared' '--disable-static' '--with-modules' '--without-magick-plus-plus' 'CC=/usr/bin/clang' 'CFLAGS=-Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7''LDFLAGS=-L/usr/local/Cellar/gettext/0.18.1.1/lib -L/usr/local/lib -L/usr /X11/lib' 'CPPFLAGS=-I/usr/local/Cellar/gettext/0.18.1.1/include -isystem /usr/local/include -I/usr/X11/include' 'CXX=/usr/bin/clang++ ' 'CXXFLAGS=-Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7'
CONFIGURE_PATH /usr/local/Cellar/imagemagick/6.7.7-6/etc/ImageMagick/
著作権 Copyright (C) 1999-2012 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick
CXX /usr/bin/clang++
CXXFLAGS -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7 -D_THREAD_SAFE -pthread
DEFS -DHAVE_CONFIG_H
デリゲート bzlib fontconfig freetype jpeg jng jp2 lcms2 png tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS 'CC=/usr/bin/clang' 'CFLAGS=-Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7' 'CPPFLAGS=-I/usr/local/Cellar/gettext /0.18.1.1/include -isystem /usr/local/include -I/usr/X11/include' 'CXX=/usr/bin/clang++' 'LDFLAGS=-L/usr/local/Cellar/gettext/0.18.1.1 /lib -L/usr/local/lib -L/usr/X11/lib' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with -gslib=いいえ --with-fontpath= --with-wmf=いいえ --with-perl=いいえ
DOCUMENTATION_PATH /usr/local/Cellar/imagemagick/6.7.7-6/share/doc/ImageMagick
EXEC-PREFIX /usr/local/Cellar/imagemagick/6.7.7-6
EXECUTABLE_PATH /usr/local/Cellar/imagemagick/6.7.7-6/bin
特徴 OpenCL
FILTER_PATH /usr/local/Cellar/imagemagick/6.7.7-6/lib/ImageMagick/modules-Q16/filters
ホスト x86_64-apple-darwin11.4.0
INCLUDE_PATH /usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick
LDFLAGS -L/usr/local/Cellar/imagemagick/6.7.7-6/lib -L/usr/local/Cellar/gettext/0.18.1.1/lib -L/usr/local/lib -L/usr/X11/ lib -L/usr/X11/lib
LIB_VERSION 0x677
LIB_VERSION_NUMBER 6,7,7,6
LIBRARY_PATH /usr/local/Cellar/imagemagick/6.7.7-6/lib/ImageMagick
ライブラリ -lMagickCore -llcms2 -ltiff -lfreetype -ljpeg -L/usr/X11/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -Wl,-framework,OpenCL -lm -lpthread -lltdl
名前 ImageMagick
PCフラグ
PREFIX /usr/local/Cellar/imagemagick/6.7.7-6
クォンタムデプス 16
RELEASE_DATE 2012-08-08
SHARE_PATH /usr/local/Cellar/imagemagick/6.7.7-6/share/ImageMagick
SVN_REVISION 8165
TARGET_CPU x86_64
TARGET_OS darwin11.4.0
TARGET_VENDOR りんご
バージョン 6.7.7
ウェブサイト http://www.imagemagick.org
Ghostscript が ImageMagick によってデリゲートとして認識されるようにするにはどうすればよいですか?