Home >Backend Development >PHP Tutorial >Use php_imagick to resize, rotate, sharpen, reduce color or add special effects to images_PHP Tutorial
php_imagick is an expansion package for PHP for image processing. It can complete operations such as changing the size, rotating, sharpening, subtracting colors or adding special effects to images.
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. Settings
yum install ImageMagick ImageMagick-devel
3. Case
//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;
This article describes how to use php_imagick to change the size, rotate, sharpen, reduce color or add special effects to images. I hope this article can bring inspiration to readers and help them solve their questions. Thank you for reading this article. Welcome to discuss PHP technical issues: 304224365, verification: csl, O(∩_∩)O Thank you!