CentOS 7.x 編譯安裝 ImageMagick

Convert, Edit, Or Compose Bitmap Images @ ImageMagick

https://imagemagick.org/index.php


Download @ ImageMagick

https://imagemagick.org/script/download.php


Install from Source @ ImageMagick

https://imagemagick.org/script/install-source.php


下載 ImageMagick
cd /usr/local/src
lynx https://github.com/ImageMagick/ImageMagick/archive/7.0.9-2.tar.gz

安裝 ImageMagick
tar zxf ImageMagick-7.0.9-2.tar.gz
cd ImageMagick-7.0.9-2
./configure --prefix=/usr/local/ImageMagick
make
make check
make install
make clean

執行位置
/usr/local/ImageMagick/bin/magick

指令說明
/usr/local/ImageMagick/bin/magick -help

轉換格式
/usr/local/ImageMagick/bin/convert

Imagick/imagick: Imagick PHP extension

https://github.com/Imagick/imagick


下載 imagick
cd /usr/local/src
lynx https://github.com/Imagick/imagick/archive/3.4.4.tar.gz

安裝 imagick
tar zxf imagick-3.4.4.tgz
cd imagick-3.4.4
/usr/local/php7/bin/phpize
./configure --with-php-config=/usr/local/php7/bin/php-config --with-imagick=/usr/local/ImageMagick
make
make test
make install
make clean

設定 php.ini
vi /usr/local/php7/etc/php.ini
extension=imagick.so
新增時間 2020-01-22
最後更新 2022-02-09