#30281 [NEW]: returned size for WBMP is always 1x0
| From: | spam at batz dot org | Date: | Wed, 29 Sep 2004 19:25:51 +0000 |
| Subject: | #30281 [NEW]: returned size for WBMP is always 1x0 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-66891@lists.php.net to get a copy of this message | ||
From: spam at batz dot org
Operating system: Windows XP
PHP version: 5.0.1
PHP Bug Type: GetImageSize related
Bug description: returned size for WBMP is always 1x0
Description:
------------
getimagesize returns always 1 as width and 0 as height for WBMP pictures.
problem occurs on 4.3.8 and 4.3.9 as well.
WBMP/ICO can hold multiple frames with different sizes.
Reproduce code:
---------------
$imageinfo = getimagesize('favicon.ico');
echo "width:{$imageinfo[0]}<br>";
echo "height:{$imageinfo[1]}<br>";
echo "imagetype:{$imageinfo[2]}<br>";
echo "to show that the size is wrong:<br>";
echo "<img src=\"favicon.ico\">";
Expected result:
----------------
width:16
height:16
imagetype:15
to show that the size is wrong:
IMAGE
Actual result:
--------------
width:1
height:0
imagetype:15
to show that the size is wrong:
IMAGE
--
Edit bug report at http://bugs.php.net/?id=30281&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30281&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30281&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30281&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30281&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30281&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30281&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30281&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30281&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30281&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30281&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30281&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30281&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30281&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30281&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30281&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30281&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30281&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30281&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30281&r=mysqlcfg