PHP安裝imagemagick擴展imagick

點擊下載imagemagick系統源碼包

點擊下載php擴展imagick


安裝imagemagick:

# ./configure --prefix=/usr/local/imagemagick --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes
# make && make install


安裝imagick:

解決依賴:

#libpng libpng-devel libjpeg libjpeg-devel freetype freetype-devel
# phpize

# ./configure --with-php-config=/usr/local/php/bin/php-config --with-imagick=/usr/local/imagemagick
# make && make install


php.ini新增一行:

extension=imagick.so


重啓Apache:

wKiom1jrkkmBlbGXAADUgwklMas697.png

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章