Convert image to wbmp with image2wbmp() in PHP
Description
The following code shows how to convert image to wbmp with image2wbmp().
Example
<?php//w w w . j a v a 2 s . co m
$file = 'test.png';
$image = imagecreatefrompng($file);
header('Content-Type: ' . image_type_to_mime_type(IMAGETYPE_WBMP));
image2wbmp($image); // output the stream directly
imagedestroy($image);
?>