问题:php中处理BMP似乎很麻烦JPG,GIF,PNG都很容易处理,?
回答:gd被设计成只处理网页图片,而BMP不是网页图片 -----只能通过BMP格式自己编程解决
虽然PHP的GD中内置了WBMP图片的处理,但实际上那个WBMP并不能处理windows下的BMP图片,规格不一样。
百度无果,GOOGLE一下,找到一个可用的解决方案:BMP2GD
BMP2GD 1.0
BMP2GD is a PHP script designed can be used to convert images in the BMP format. It can read a given image file in the BMP format and create a GD image resource from the contained image data.
Note:
Only non-compressed BMP images are supported.
Requirements:
- PHP 4.0 or higher
项目地址:http://www.phpkode.com/scripts/item/bmp2gd/
下载地址:http://www.phpkode.com/download/s/BMP2GD.zip