The width & height of the image to be resized is mentioned in the tag like:
<img src="/image.php/coffee.jpg?width=200&height=200ℑ=//uploads/coffee.jpg" alt="Coffee" />
and image is resized via the GD library.
Newly created image is stored in a cache directory & won’t be re-created until new dimensions are mentioned to improve the system performance.
Cropping an image also warks the same way. Simply mention the crop ratio & that’s all.
Smart Image Resizer supports JPG, GIF & PNG images and requires PHP 5.1.0+ to run.
Requirements: PHP 5.1.0+, GD library
Compatibility: JPG, GIF, PNG
Website: http://shiftingpixel.com/2008/03/03/smart-image-resi...