error_reporting(0);
include("functions.php");
$h1 = "DJ Mike's Image Maker 2";
$h2 = "Solarize";
##### Start Solarize
if ( $_GET[solarize] )
{
$solarize = (float)trim($_GET[solarize] );
#############
$image = new Imagick($_SESSION[path]);
foreach ($image as $frame)
{ $frame->solarizeimage($solarize); }
$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[solarize] = $solarize;
header("Location: display.php");
exit;
}
######### end Solarize
include("top.php");
?>
$image = new Imagick("$_SESSION[path]");
$q = $image->getQuantumRange();
$len = strlen($q[quantumRangeString]);
?>