News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint.com:
Create Dynamic Images with ImageMagick
June 26, 2006 @ 06:48:53

Over on SitePoint.com today, there's a new tutorial demonstrating an alternative to the usual GD library examples of working with images, opting instead for ImageMagick.

The key component for making dynamic images a reality on your site is an image manipulation program that's controlled by the code that generates your web pages. Even though this article uses PHP as the scripting language, other languages -- such as Perl and Ruby -- can be used just as easily, provided that the image manipulation program that you're considering has an application programming interface (API) for the chosen language.

He decided on ImageMagick for a few reasons, including that it's more supported by web hosts, it runs on Windows and Linux, and it's robust and powerful enough to handle everything from small to large tasks without missing a beat.

That said, he gets into the code, showing how a bit of PHP code can read in an image and spit back out information about it (height, width, etc), force a reduction of an uploaded image, scale down an image to fit a certian size, change it to a different type of image, and image rotation.

2 comments voice your opinion now!
imagemagick dynamic image manipulation extension tutorial imagemagick dynamic image manipulation extension tutorial


blog comments powered by Disqus

Similar Posts

Matthias Noback: Decoupling from a service locator

DZone.com: PHP Yaf (Yet Another Framework) Is Very Fast

php|architect: Two New ART Articles (CakePHP and More Flex)

PHPPro.org: SQL Intro, Reciprocal Links & Finding Links with DOM

Joshua Eichorn's Blog: Adding AJAX to a Website step by step, Part II


Community Events





Don't see your event here?
Let us know!


podcast framework symfony security library opinion update version community composer language series tool mvc interview package laravel release voicesoftheelephpant introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework