modulateimage( $brightness, $saturation, $hue ); } $format = strtolower( $image->getimageformat() ); $path = "temp/$ID.$_SESSION[views].$format"; $frames = $image->getNumberImages(); if ( $frames > 1) { $image->writeImages("$path", TRUE); } else { $image->writeImage("$path"); } # save settings $_SESSION[path] = $path; $_SESSION[brightness] = $brightness; $_SESSION[saturation] = $saturation; $_SESSION[hue] = $hue; header("Location: display.php"); exit; } ######### end modulate include("top.php"); ?>
Brightness: ">
Saturation: ">
Hue: ">

Lets you control the brightness, saturation, and hue of an image. Hue is the percentage of absolute rotation from the current position. For example 50 results in a counter-clockwise rotation of 90 degrees, 150 results in a clockwise rotation of 90 degrees, with 0 and 200 both resulting in a rotation of 180 degrees.