quantizeImage($num_colors, imagick::COLORSPACE_TRANSPARENT, 5, TRUE, TRUE); } $format = strtolower( $image->getimageformat() ); $path = "temp/$ID.$_SESSION[views].$format"; $_SESSION[path] = $path; $frames = $image->getNumberImages(); if ( $frames > 1) { # write animation $image->writeImages("$path", TRUE); } else { # write single $image->writeImage("$path"); } header("location:display.php"); exit; } include("top.php"); ?>
Number Of Colors

Enter the number of colors that you want the image to have. Works on GIF's and PNG's