Location: PHPKode > scripts > GD Image Manipulation > gd-image-manipulation/example.php
/* Example file for ImageManipulation.class.php
 * This is GDImageManipulation in action.
 * It loads the test-png (300.png), does a few operations on
 * it, saves it as jpeg and for your convenience, loads it
 * into this page.
 * See the upcoming documentation for details.


$imageManipulation = new GDImageManipulation();

$imageManipulation->fit_width('250', true);
$imageManipulation->rotate(45, 255, 255, 255);

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">



   <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
    <img src="300.png" />
    <img src="300.jpg" />

Return current item: GD Image Manipulation