Skip to Main Content
Painting the Web
book

Painting the Web

by Shelley Powers
May 2008
Beginner content levelBeginner
656 pages
17h 41m
English
O'Reilly Media, Inc.
Content preview from Painting the Web

Programming with ImageMagick and IMagick

Most, if not all, of the ImageMagick functionality is available via a language-based API for languages such as Ruby, Python, Perl, C, List, C++, and even Pascal. There are two ImageMagick interface libraries for PHP, and I'm going to take a quick look at one, IMagick. The last chapter in this book has further examples of using both PHP/GD and IMagick for creating dynamic images.

Chances are good that, unlike GD, your hosting solution doesn't have support for IMagick, which does need to be compiled into your version of PHP. However, if you ask nice and promise your host not to abuse the privilege (by blurring thousands of 1, 600-pixel-wide PNG files), they might install it for your use. At a minimum, do try to install it locally on your machine.

Unfortunately, IMagick is not simple to install and comes with little documentation. However, with the new, more stable release of version 2.0 in October of 2007, I'm hoping that increased interest in the product will drive out simpler installation and documentation.

Tip

The source for IMagick can be found at http://pecl.php.net/package/imagick. There are installation instructions in the file named INSTALL, and at the PHP.net site, at http://us.php.net/manual/en/imagick.install.php. Windows-built libraries are also available. The documentation is very limited, but the class methods and parameters are at least described at http://us2.php.net/imagick. The creator of the extension, Mikko Koppanen, does have ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick
Mastering PHP 7

Mastering PHP 7

Branko Ajzele

Publisher Resources

ISBN: 9780596515096Supplemental ContentErrata Page