PHP smart and easy Image Manipulation
SmartImage is a free PHP class under LGPL licence.
With SmartImage you can easily:
- resize images (in order to do thumbnails)
- add a watermark to your images
- convert files from/to jpg, gif and png formats
- optimize jpg size and quality
- rotate
Do you like SmartImage? It was usefull for you?
DOWNLOAD SMARTIMAGE
Requirements:
- PHP >=4.0.1 or PHP >=5
- GD libraries 1 or GD2
New in SmartImage 0.9.6
- now you can rotare images!
- It can manage bigger images
- There is a better error handling
- Watermark with png images are better handled (please, read the comments)
- It is faster!
- only PHP 5 compatible (in the last version)
Some examples:
1. Original image: IMAGE 1024x768 (76,5 Kb)
2. Resize, cut and save with 85% of quality:
<?php include "SmartImage.class.php";
$img = new SmartImage($src); // Resize and save to file // the true value means to cut the image $img->resize(400, 220, true); $img->saveImage("newimages/new01.jpg", 85); ?>
|

400x220 22,6 Kb
3. Resize, cut and save with 85% of quality + WaterMark:
<?php include "SmartImage.class.php";
$img = new SmartImage($src); // Resize and save to file // the true value means to cut the image $img->resize(400, 220, true); $img->addWaterMarkImage("images/smartimage.gif"); $img->saveImage("newimages/new03.jpg", 85); ?>
|

400x220 24,3 Kb
4. Resize and save:
<?php include "SmartImage.class.php";
$img = new SmartImage($src); // Resize and save to file // there isn't the true parameter (cut mode disabled) $img->resize(120, 80); $img->saveImage("newimages/new07.jpg", 90); ?>
|

120x80 4,42 Kb
DOWNLOAD SMARTIMAGE
|