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