1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?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.9 * */ 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>";
?>
|