PHP script for resizing images the smart way
One of the challenges that comes with maintaining a graphic-intensive website like Shifting Pixel is finding a way to get high quality images throughout the site with as little effort as possible. To tackle this, I developed the Smart Image Resizer and have been using it around the site for the past few months. I couldnít be happier.
The major advantage of this script is that it allows me to resize and crop any image on my website without touching the actual image or writing any code. I upload each image once at a high enough resolution and can then reuse it at any size I want, anywhere I want. It doesnít matter if the images are in a post, on a page, or in a template fileĖit just works. All of the magic is done through the query string part of the URL in the src attribute of the img tag.
And, if this wasnít a big enough time-saver for me right now, itíll be a huge time-saver the next time I decide to redesign my site. Itís a relief that I wonít have to go through to resize and re-upload a thousand photos to make sure they look rightĖIíll just have to change the links to them and Iíll be all set.
Resizes JPEGs, GIFs, and PNGs
Intelligently sharpens for crisp photos at any size
Can crop based on width:height ratios
Can color-fill transparent GIFs and PNGs
Built-in caching keeps image variations for optimal performance
Download that great tool here:
Posted by admin
on April 24 2008 16:18:45
||4888 Reads ·