News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



Stoyan Stefanov's Blog:
Laziest image resize in PHP
0 comments :: posted Thursday December 14, 2006 @ 09:19:00
voice your opinion now!

On phpied.com, there's this new post that shares Stoyan's lazy way to resize images in PHP - with the help of the PEAR::Image_Transform package.

Today I saw a post at digg.com on image resizing with PHP and there was quite a discussion. Let me share the laziest way (that I know of) how to do it - PEAR::Image_Transform is all it takes.

His code is only five lines log and takes in a JPG image and resizes it down to a 100x100 pixel image to output as a PNG. He also mentions some of the other functionality the package has, including lots of other image manipulation extensions.

tagged with: image resize pear package imagetransform image resize pear package imagetransform



database mysql job developer releases code zend ajax package security application book pecl zendframework PEAR conference PHP5 cakephp release framework

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