<?php
/**
* SimpleImage sample
* @description Class to manipulate with images
* @version 1.0.0
* @copyright (c) 2013 Juraj Puchký - Devtech
* @license GPLv3
* @autor Juraj Puchký - Devtech <sjurajpuchky@seznam.cz>
*
*/
include_once 'SimpleImage.php';
$image = SimpleImage::load('http://files.phpclasses.org/graphics/phpclasses/elephpant.png');
$resizedImage = SimpleImage::resizeToHeight ( $image, 30 );
SimpleImage::save ( $resizedImage, "resized.png" );
unset($image);
unset($resizedImage);
|