News Feed
Sections




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

NETTUTS.com:
Image Resizing Made Easy with PHP
March 19, 2010 @ 08:47:48

New from NETTUTS.com there's a recent tutorial showing you how to use the GD graphics library (bundled with PHP) to resize images on the fly.

Ever wanted an all purpose, easy to use method of resizing your images in PHP? Well that's what PHP classes are for '" reusable pieces of functionality that we call to do the dirty work behind the scenes. We're going to learn how to create our own class that will be well constructed, as well as expandable. Resizing should be easy.

The simple eleven-step process (don't worry, it sounds worse than it is) has you go from a basic image and, with the help of a custom PHP class, create a resized image based on a type such as "landscape", "auto" or "exact". Full code is included for you to cut and paste or you can download the source and have the full code ready and waiting.

2 comments voice your opinion now!
image resize tutorial gd graphic library


blog comments powered by Disqus

Similar Posts

O'Reilly: Migrating Web-Based PHP Applications to Ajax

IBM developerWorks: Understanding the Zend Framework,Part 4: When there is no feed, Zend_HTTP_Client

Scott Mattocks' Blog: PHP-GTK News #22

Zend Developer Zone: AJAX Chat Tutorial Part 6 : Updating the User List

Hasin Hayder's Blog: RSA Encrypting and Decrypting data with Zend_Crypt_Rsa Library


Community Events

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


community unittest laravel5 extension wordpress voicesoftheelephpant language library introduction development podcast api interview conference release opinion series laravel psr7 framework

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