php_imagick是PHP對圖片處理的一個擴展包,可以完成對圖片改變大小、旋轉、銳化、減色或增加特效等操作。
http://image_magick.veidrodis.com/image_magick/binaries/ImageMagick-6.6.2-10-Q16-windows-dll.exe
http://valokuva.org/outside-blog-content/imagick-windows-builds/php53/imagick-2.3.0-dev/vc9_nts/php_imagick.dll
http://valokuva.org/outside-blog-content/imagick- windows-builds/php53/imagick-2.3.0-dev/vc9_zts/php_imagick.dll
3、設置
yum install ImageMagick ImageMagick-devel
三、案例
//by www.tsingyuan.cn header('Content-type: image/jpeg'); $image = new Imagick('test.jpg'); $color=new ImagickPixel(); $color->setColor("rgb(220,220,220)"); $image->borderImage($color,5,4); $image->blurImage(5,5,imagick::CHANNEL_GREEN); echo $image;
//by www.tsingyuan.cn header('Content-type: image/jpeg'); $image = new Imagick('test.jpg'); $image->thumbnailImage(50, 0); echo $image;
本文講述了使用php_imagick對圖片改變大小、旋轉、銳化、減色或是增加特效,希望本文能給讀者帶來靈感,幫助讀者解決疑問,感謝閱讀本文。php技術問題歡迎來探討:304224365,驗證:csl,O(∩_∩)O謝謝!