1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
<?php include('./class.ImageFilter.php');
//****************************************************************************** // on ouvre une image et on applique des filtres //****************************************************************************** $IF=new ImageFilter;
$commands=array( array('filter'=>'loadImage','params'=>array('test.png')), array('filter'=>'resize','params'=>array('200%','','force',true)), array('filter'=>'sepia','params'=>array()), array('filter'=>'mosaic','params'=>array(3)), array('filter'=>'flip','params'=>array('h')), array('filter'=>'stamp','params'=>array('testStamp.png',0,0)), array('filter'=>'rotation','params'=>array('90')), array('filter'=>'stamp','params'=>array('test.png',0,0,'multiply')), array('filter'=>'lightContrast','params'=>array(0,100)), array('filter'=>'output','params'=>array('PNG')) );
$IF->batchFilter($commands); ?>
|