PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Test1   Image Modifier   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Image Modifier
Modify images templates with new text and images
Author: By
Last change:
Date: 16 years ago
Size: 762 bytes
 

Contents

Class file image Download
<?php
/**
 * standalone class for ImageModifier
 *
 * Features :
 * Generating Image withe the combination of text & image on a image template:
 *
 * @author sudhir vishwakarma <sudhir.vis@gmail.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);


?>