Source for file test.php
Documentation is available at test.php
* This script provides a simple example of using the Image_Resize library and
* is designed to be used as a test of your setup.
require_once 'Image/Transform.php';
define('IMAGE_TRANSFORM_LIB_PATH', '/usr/local/ImageMagick/bin/');
// Change 'IM' to 'GD' to test using the GD library.
$im->load ('Image_Transform/Examples/test.jpg');
// next will resize so that the largest length is 300px - height or width
// next is a subclass call that calls the above with a set size.
$im->addText (array ('text' => 'Annotated'));
$im->save ('/www/htdocs/test.jpg');
// Now free the memory - should be called free?
Documentation generated on Mon, 11 Mar 2019 15:48:01 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|