coalesceImages(); foreach ($image as $frame) { $frame->sketchImage($sketch_radius, $sketch_sigma, $sketch_angle ); } $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[sketch_radius] = $sketch_radius; $_SESSION[sketch_sigma] = $sketch_sigma; $_SESSION[sketch_angle] = $sketch_angle; header("Location: display.php"); exit; } ######### end sketch include("top.php"); ?>

"> Radius: "> Sigma: "> Angle ">
Description
Simulates a pencil sketch. Convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and Imagick::sketchImage() selects a suitable radius for you. Angle gives the angle of the blurring motion.
Radius
The radius of the Gaussian, in pixels, not counting the center pixel.
Sigma
The standard deviation of the Gaussian, in pixels.
Angle
Direction of effect.