coalesceImages(); foreach ($image as $frame) { $image->trimimage($_GET[fuzz]); } $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[fuzz] = $fuzz; header("Location: display.php"); exit; } ######### end Trim include("top.php"); ?>
"> Fuzz: ">


Description:
bool Imagick::trimImage ( float $fuzz )

Remove edges that are the background color from the image. This works fo non-animated images only.
Parameters
Fuzz
By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same.