Location: PHPKode > scripts > Smart Image > smart-image/sample01.php
<?php

/**
 * Smart, easy and simple Image Manipulation
 * 
 * @author Alessandro Coscia, Milano, Italy, hide@address.com
 * 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>";

?>
Return current item: Smart Image