download the most recent package
$ wget http://www.imagemagick.org/download/ImageMagick.tar.gz
uncomress the package
$ tar -vxf ImageMagick.tar.gz
install the devel packages for png, jpg, tiff. these are dependencies of ImageMagick
$ sudo yum -y install libpng-devel libjpeg-devel libtiff-devel
configure: error: no acceptable C compiler found in $PATH 対策
$ sudo yum -y install gcc
convert: delegate library support not built-in エラー対策
$ sudo yum -y install freetype freetype-devel
$ cd ImageMagick $ ./configure –without-x $ make $ sudo make install
以下のコマンドで、とりあえず文字画像が生成できました
$ magick -background white -fill blue -font /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf -pointsize 40 label:@2a.txt -quality 94 2a_magick.png
$ magick -background none -fill white -stroke black -font hiragino.ttc -pointsize 70 label:あああ aaa.png
コメント