<?phpheader("Content-type: image/jpeg");$image = new Imagick("opossum.jpg"); $image->posterizeImage( 2, FALSE);echo $image;?>