PHP Classes

File: effects.example.php

Recommend this page to a friend!
  Classes of Trev Tune  >  PHP Image Editor  >  effects.example.php  >  Download  
File: effects.example.php
Role: Example script
Content type: text/plain
Description: How to use the effects plugin
Class: PHP Image Editor
Create and edit images using plugins
Author: By
Last change: Fixed a bug
Date: 8 years ago
Size: 419 bytes
 

Contents

Class file image Download
<?php
   
include 'image_editor.php';
   
//Initialize the class
     
$se=new SImEdi('test_image.jpg');
   
//Load the effects plugin
       
$se->plugin('effects');
   
//Blur the image and save
      
$se->effects->blur(10);
      
$se->save('test_image.jpg');

   
//load a different image ,emboss then save
      
$se->load('php.png');
      
$se->effects->emboss();
       
$se->save('php2.png');

For more information send a message to info at phpclasses dot org.