<?php
/**
* Smart, easy and simple Image Manipulation
*
* @author Alessandro Coscia, Milano, Italy, php_staff@yahoo.it
* http://www.codicefacile.it/smartimage
* @copyright LGPL
* @version 0.8.4
*
*/
include "SmartImage.class.php";
// Settings
$src = "images/car.jpg";
$waterMark = "images/smartimage.gif";
$destination = "newimages/";
// Start!
$img = new SmartImage($src);
// Resize and save file
$img->resize(400, 220, true);
$img->saveImage($destination."new01.jpg");
echo "Done! See this link <a href='{$destination}new01.jpg'>New Image</a>";
?>
|