|
PHP5ÖÐÎÄÊÖ²á
Imagick Image Library¼ò½é
Warning
Imagick is a native php extension to create and modify images using the
ImageMagick API.
±¾À©Õ¹Ä£¿éÊÇʵÑéÐԵġ£±¾Ä£¿éµÄÐÐΪ£¬°üÀ¨Æ亯ÊýµÄÃû³ÆÒÔ¼°ÆäËüÈκιØÓÚ´ËÄ£¿éµÄÎĵµ¿ÉÄÜ»áÔÚûÓÐ֪ͨµÄÇé¿öÏÂËæ PHP ÒÔºóµÄ·¢²¼¶ø¸Ä±ä¡£Ê¹Óñ¾À©Õ¹Ä£¿é·çÏÕ×Ôµ£¡£ ImageMagickR is a software suite to create, edit, and compose bitmap images.. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Copyright 1999-2007 ImageMagick Studio LLC, a non-profit organization dedicated to making software imaging solutions freely available. ·¶ÀýImagick makes image manipulation in PHP extremely easy through an OO interface. Here is a quick example on how to make a thumbnail: Example#1 Creating a thumbnail in Imagick
<?php Using SPL and other OO features supported in Imagick, it can be simple to resize all files in a directory (useful for batch resizing large digital camera images to be web viewable). Here we use resize, as we might want to retain certain meta-data: Example#2 Make a thumbnail of all JPG files in a directory
<?php Table of Contents
|