Page 1 of 1
Support of BMP in gd2
Posted: Sat May 07, 2005 10:46 am
by jasongr
Hello people
does anyone know if gd2 supports the BMP windows format?
I am trying to find functions similar to:
* imagepng
* imagecreatefrompng
for manipulation of BMP files
regards
Posted: Sat May 07, 2005 10:55 am
by John Cartwright
As far as I can tell from
http://php.net/gd there is no support for image creation of BMP. There is however wbmp (wireless bitamps) functions that are used for black/white low rescource handhelds and such.
Posted: Sat May 07, 2005 10:56 am
by jasongr
thanks
Posted: Sat May 07, 2005 11:14 am
by anjanesh
Actually speaking gd developers could have supported bmp formats but I guess they targeted for web-specific images mainly ? Outputting BMP is not that tough to implement - they are just uncompressed pixels with the colour code at each location. Theres just 2 headers which you'll need to read properly.
I dont know wheres the original format location - but heres where you can start :
http://www.dcs.ed.ac.uk/home/mxr/gfx/2d/BMP.txt
Search
wotsit for any format