PHP Classes
elePHPant
Icontem

File: testing.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Uku-Kaarel Jo~esaar  >  My Image Filter  >  testing.php  >  Download  
File: testing.php
Role: Example script
Content type: text/plain
Description: testing.php
Class: My Image Filter
Apply several types of effects on images
Author: By
Last change: 2009Mar22 - New filter: image-texture-frame
Date: 6 years ago
Size: 5,460 bytes
 

Contents

Class file image Download
<?php

require_once './class.myimagefilter.php';

$image = 'original.jpg';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_texturedframe( );
$myio->image_out ( 'png', './output/texturedframe.png' );
echo
'filter_texturedframe<br>';

die(
'ok');



$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_negate ( );
$myio->image_out ( 'png', './output/negate.png' );
echo
'filter_negate<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_grayscale ( );
$myio->image_out ( 'png', './output/grayscale.png' );
echo
'filter_grayscale<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_brightness ( -80 );
$myio->image_out ( 'png', './output/brightness-80.png' );
echo
'filter_brightness0<br>';
$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_brightness ( 80 );
$myio->image_out ( 'png', './output/brightness+80.png' );
echo
'filter_brightness1<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_contrast( 20 );
$myio->image_out ( 'png', './output/contrast,20.png' );
echo
'filter_contrast<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_colorize( 128, 128, 30 );
$myio->image_out ( 'png', './output/colorize128,128,030.png' );
echo
'filter_colorize<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_edgedetection( );
$myio->image_out ( 'png', './output/edgedetection.png' );
echo
'filter_edgedetection<br>';



$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_emboss( );
$myio->image_out ( 'png', './output/emboss.png' );
echo
'filter_emboss<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_gaussianblur( );
$myio->image_out ( 'png', './output/gaussianblur.png' );
echo
'filter_gaussianblur<br>';

$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_meanremoval( );
$myio->image_out ( 'png', './output/meanremoval.png' );
echo
'filter_meanremoval<br>';

$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_smooth( 40 );
$myio->image_out ( 'png', './output/smooth.png' );
echo
'filter_smooth<br>';

$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_tint( 128, 128, 30, 0.5 );
$myio->image_out ( 'png', './output/tint,128,128,20,i5.png' );
echo
'filter_tint<br>';



$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_rasterlines( 127 );
$myio->image_out ( 'png', './output/rasterlines,127.png' );
echo
'filter_rasterlines<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_bayer( );
$myio->image_out ( 'png', './output/bayer.png' );
echo
'filter_bayer<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_contures ( 5, 10, TRUE );
$myio->image_out ( 'png', './output/contures,5,15,true.png' );
echo
'filter_contures bw<br>';

$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_contures ( 5, 10, FALSE );
$myio->image_out ( 'png', './output/contures,5,15,false.png' );
echo
'filter_contures<br>';



$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_jittering( 5 );
$myio->image_out ( 'png', './output/jittering,5.png' );
echo
'filter_jittering<br>';



$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_polarize( );
$myio->image_out ( 'png', './output/polarize.png' );
echo
'filter_polarize<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_refractor( 20 );
$myio->image_out ( 'png', './output/refractor,20.png' );
echo
'filter_refractor<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_colortreshold( 8 );
$myio->image_out ( 'png', './output/colortreshold,64.png' );
echo
'filter_colortreshold<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_cartoonize( );
$myio->image_out ( 'png', './output/cartoonize.png' );
echo
'filter_cartoonize<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_treshold( 128 );
$myio->image_out ( 'png', './output/treshold,127.png' );
echo
'filter_treshold<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_rasterize( 127 );
$myio->image_out ( 'png', './output/rasterize,127.png' );
echo
'filter_rasterize<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_olify( 2 );
$myio->image_out ( 'png', './output/olify,2.png' );
echo
'filter_olify<br>';

$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_pastelcolor( 2 );
$myio->image_out ( 'png', './output/pastelcolor,2.png' );
echo
'filter_pastelcolor<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_watercolor( );
$myio->image_out ( 'png', './output/watercolor.png' );
echo
'filter_watercolor<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_rotozoom(45, 1.6 );
$myio->image_out ( 'png', './output/rotozoom.png' );
echo
'filter_rotozoom<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_mirroredframe(10 );
$myio->image_out ( 'png', './output/mirroredframe,20.png' );
echo
'filter_mirroredframe<br>';


$myio = new myimagefilter( $image );
set_time_limit ( 0 );
$myio->filter_texturedframe( );
$myio->image_out ( 'png', './output/texturedframe.png' );
echo
'filter_texturedframe<br>';

?>