error_reporting(0); include("functions.php"); $h1 = "DJ Mike's Image Maker 2"; $h2 = "Normalize"; ##### Start normalize if ( $_GET[normalize] ) { $normalize = trim( $_GET[normalize] ); $image = new Imagick($_SESSION[path]); foreach ($image as $frame) { $frame->normalizeImage( $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 settings $_SESSION[path] = $path; $_SESSION[normalize] = $normalize; header("Location: display.php"); exit; } ######### end normalize include("top.php"); ?>
Enhances the contrast of a color image by adjusting the pixels color to span the entire range of colors available.
include("footer.php"); ?>