<?php $file = 'php.png';$image = imagecreatefrompng($file);header('Content-type: ' . image_type_to_mime_type(IMAGETYPE_WBMP));image2wbmp($image); // output the stream directly?>