Location: PHPKode > scripts > Image Modifier > image-modifier/example.php
<?php
/**
 * standalone class for ImageModifier
 * 
 * Features :
 * Generating Image withe the combination of text & image on a image template:
 * 
 * @author sudhir vishwakarma <hide@address.com>
 * @copyright Sudhir Vishwakarma 
 * 
 * @version 0.1 20081003
 *
 */

require_once "ImageModifier.class.php";

//Example 

$oImageMagick = new ImageModifier('template.jpg'); // Image Template on which you have to manupulate
$oImageMagick->setText("This is one", 350, 20, 22, "red");
$oImageMagick->setText("This is Two", 50, 50, 25, "blue","50");

$oImageMagick->setImage("brand.jpg", 160, 90, 0);
$oImageMagick->setImage("tata.jpg", 160, 20);

$newImagename = "mynewImage.jpg";
$oImageMagick->generateImage($newImagename);


?>
Return current item: Image Modifier