error_reporting(0); include("functions.php"); $h1 = "DJ Mike's Image Maker 2"; $h2 = "Enhance/Equalize"; if ( $_GET[option] ) { $image = new Imagick($_SESSION[path]); if ( $_GET[option] == "Enhance" ) { foreach ($image as $frame) { $frame->enhanceimage(); } } if ( $_GET[option] == "Equalize" ) { foreach ($image as $frame) { $frame->equalizeimage(); } } $format = strtolower( $image->getimageformat() ); $path = "temp/$ID.$_SESSION[views].$format"; $frames = $image->getNumberImages(); if ( $frames > 1) { $image->writeImages("$path", TRUE); } else { $image->writeImage("$path"); } $_SESSION[path] = $path; header("location:display.php"); exit; } include("top.php"); ?>