error_reporting(0);
include("functions.php");
$h1 = "DJ Mike's Image Maker 2";
$h2 = "Despeckle";
##### Start despeckle
if ( $_GET[despeckle] )
{
$deg = trim($_GET[despeckle]);
#############
$image = new Imagick($_SESSION[path]);
foreach ($image as $frame)
{ $frame->despeckleimage($deg); }
$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;
header("Location: display.php?");
exit;
}
######### end despeckle
include("top.php");
?>
Reduces the speckle noise in an image while perserving the edges of the original image.
include("footer.php"); ?>