yum install libwebp libwebp-devel wget tar zjf ImageMagick-6.9.1-10.tar.xz cd ImageMagick-6.9.1-10 ./configure --prefix=/usr/local/imagemagick --with-webp make && make install 安装完测试下是否支持WEBP #/usr/local/imagemagick/bin/convert -list format | grep WEBP WEBP* rw- WebP Image Format 查找到说明支持 wget http://pecl.php.net/get/imagick-3.4.3.tgz tar -zxf imagick-3.4.3.tgz cd imagick-3.4.3 /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --with-imagick=/usr/local/imagemagick make && make install php.ini添加 extension=imagick.so 并重启PHP测试</pre>