ImageMagick と imagick をインストール
ImageMagick をインストール。
~]# dnf --enablerepo=epel install ImageMagick ImageMagick-devel
僕は WebP への変換で cwebp, gif2webp, webpmux を使っているので、libwebp-tools をインストール。
~]# dnf --enablerepo=crb install libwebp-tools
確認。
~]# magick --version ~]# cwebp -version ~]# gif2webp -version ~]# webpmux -version
必要なパッケージをインストール。
~]# dnf install php-devel php-pear
pecl で imagick をインストール。
Enter
~]# pecl install imagick ・・・ ・・・ Please provide the prefix of ImageMagick installation [autodetect] : ⏎ ・・・ ・・・ You should add "extension=imagick.so" to php.ini
php.ini 最下部に追記。
~]# vi /etc/php.ini ・・・ ・・・ extension=imagick.so
反映。
~]# systemctl restart php-fpm