GD actually supports the quite different WBMP format and not BMP.