Php_imagick is
PHPAn expansion pack for image processing can be done to resize, rotate, sharpen, subtract, or add effects to a picture.
One, install Imagick extension under Windows:
1. Download ImageMagick and install
Http://image_magick.veidrodis.com/image_magick/binaries/ImageMagick-6.6.2-10-Q16-windows-dll.exe
2. Download Php_imagick.dll
Http://valokuva.org/outside-blog-content/imagick-windows-builds/php53/imagick-2.3.0-dev/vc9_nts/php_imagick.dll
If you are using a thread-safe php, please download
Http://valokuva.org/outside-blog-content/imagick-windows-builds/php53/imagick-2.3.0-dev/vc9_zts/php_ Imagick.dll
3. Setting
Add in PHP.ini
Extension=php_imagick.dll, restart the Web server
Second, the Linux installation Imagick extension:
1.yum mounting ImageMagick
Yum Install ImageMagick Imagemagick-devel
2. Test whether the installation is successful
Convert-version
3. Installing the Imagick Extension
wget http://pecl.php.net/get/imagick-3.1.0RC2.tgz
Tar xzvf imagick-3.1.0rc2.tgz
CD IMAGICK-3.1.0RC2
Phpize
./configure
Make
Make install
4. Editing
php.iniFile, add the following code at the end of the file
Extension=imagick.so
5. Restart the Apache server
Service httpd Restart
Third, the case
1. Frame Handling
by Www.tsingyuan.cnheader (' 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;
2. Generate thumbnail images
This article describes the use of Php_imagick to change the size of the picture, rotation, sharpening, subtractive or add special effects, I hope this article will bring inspiration to readers, help readers solve the problem, thank you for reading this article. PHP Technical questions Welcome to discuss: 304224365, verify: Csl,o (∩_∩) O Thank you!
http://www.bkjia.com/PHPjc/621635.html www.bkjia.com true http://www.bkjia.com/PHPjc/621635.html techarticle Php_imagick is a PHP extension package for image processing, which allows you to resize, rotate, sharpen, subtract, or add effects to a picture. One, under Windows install Imagick Extension: ...