#50960 [Com]: createimagefromwbmp fails to process some .bmp files (mime type: x-ms-bmp)
| From: | sks76543210 at gmail dot com | Date: | Tue, 09 Feb 2010 05:55:38 +0000 |
| Subject: | #50960 [Com]: createimagefromwbmp fails to process some .bmp files (mime type: x-ms-bmp) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-147351@lists.php.net to get a copy of this message | ||
ID: 50960
Comment by: sks76543210 at gmail dot com
Reported By: nirvn dot asia at gmail dot com
Status: Open
Bug Type: GD related
Operating System: windows 2003
PHP Version: 5.3.1
New Comment:
The gd library only supports wbmp files, not bmp. See comments at
http://php.net/manual/en/function.imagecreate.php
for an
imagecreatefrombmp() function. (I have not tested it, so YMMV)
Previous Comments:
------------------------------------------------------------------------
[2010-02-08 01:42:12] nirvn dot asia at gmail dot com
Description:
------------
The GD function createimagefromwbmp() fails to process some .bmp (with
mime type x-ms-bmp).
For developers, this bmp (http://www.licadho-cambodia.org/php/test.bmp)
will show the bug.
Any chance of finding a quick fix for this one?
Reproduce code:
---------------
/* download http://www.licadho-cambodia.org/php/test.bmp
*/
$img = imagecreatefromwbmp(test.bmp')
Expected result:
----------------
The function reads the .bmp and stores the image into $img.
Actual result:
--------------
The function returns a warning (below) and $img is empty.
Warning: imagecreatefromwbmp() [function.imagecreatefromwbmp]:
'test.bmp' is not a valid WBMP file in ...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50960&edit=1