error_reporting(0); include("functions.php"); $h1 = "DJ Mike's Image Maker 2"; $h2 = "Sepia"; ##### Start sepiaTone if ( $_GET[sepia] ) { $sepia = (int)trim($_GET[sepia]); ############# $image = new Imagick($_SESSION[path]); foreach ($image as $frame) { $frame->sepiaToneimage($sepia); } $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[sepia] = $sepia; header("location:display.php"); exit; } ######### end sepiaTone include("top.php"); ?>
Applies a special effect to the image, similar to the effect achieved in a photo darkroom by sepia toning. Threshold ranges from 0 to QuantumRange and is a measure of the extent of the sepia toning. A threshold of 80 is a good starting point for a reasonable tone. Low numbers yield a yellow tone. High numbers yield a purple tone.
include("footer.php"); ?>