|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-30 03:16 UTC] iliaa@php.net
[2004-10-04 18:35 UTC] spam at batz dot org
[2004-10-04 22:44 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 02:00:01 2025 UTC |
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