PHP Smart Image Resizer Script
25
Aug
Smart image resizer is a PHP script which makes it very easy to resize & crop images. And, this is done without touching the original image.
The width & height of the image to be resized is mentioned in the img 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...
Compatibility: JPG, GIF, PNG
Website: http://shiftingpixel.com/2008/03/03/smart-image-resi...
- Tags:
GD Php
- Filed under: CC License, Extras, Tools





5 Responses for "PHP Smart Image Resizer Script"
[...] Shifting Pixel | Smart Image Resizer Link: Web Resources Depot | PHP Smart Image Resizer Script Posts [...]
5.1+ required? I could probably write this for 4.2 and have it work exactly the same.
Great resource!.
Thanks a lot.
There is a very weird charactter used in the parameter line, how does that work?
found it, it is ampersand image= wich isconverted by a browser to an utf character funny J &image=
Valid XHTML | Valid CSS
Popular Posts