<?php header('Content-type: image/jpeg'); $image = new Imagick("opossum.jpg"); $image->swirlimage(180); echo $image; ?>