<?php$image = new Imagick("logo.png");$image->trimimage(10);header( "Content-Type: image/$image->getImageFormat()" );echo $image;?>