How to convert PNG image file to WBMP image file in PHP

1 Answer

0 votes
// bool png2wbmp(string $pngname, string $wbmpname, int $dest_height, 
//               int $dest_width, int $threshold)

// Threshold value between 0 and 8 

$path = 'd:\test-font.png';

$image_png_size = getimagesize($path);

png2wbmp($path, 'd:\test.wbmp', $image_png_size[1], $image_png_size[0], 7);


/*
run:
    
Check the folder for the new .wbmp image

       
*/

 



answered Jul 14, 2016 by avibootz

Related questions

1 answer 159 views
1 answer 131 views
1 answer 133 views
1 answer 250 views
2 answers 226 views
...