contraststretchimage( $white, $black, $channel); } $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 data $_SESSION[path] = $path; $_SESSION[contraststretchImage_white] = $white; $_SESSION[contraststretchImage_black] = $black; header("location:display.php"); exit; } include("top.php"); ?>
White Point
Black Point
Description
Enhances the contrast of a color image by adjusting the pixels color to span the entire range of colors available. Imagik doesn't describe what White Point and Black Point are but values from 0 to 100 seem to work