amazon linux に ImageMagick-last をソースからインストール


download the most recent package

$ wget

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