Convert an XBM image to a png image using imagecreatefromxbm() in PHP
Description
The following code shows how to convert an XBM image to a png image using imagecreatefromxbm().
Example
<?php/* w w w . j a va2 s.c o m*/
// Load the xbm file
$xbm = imagecreatefromxbm('./example.xbm');
// Convert it to a png file
imagepng($xbm, './test.png');
imagedestroy($xbm);
?>