#30281 [Fbk->Opn]: returned size for WBMP is always 1x0

From: Date: Mon, 04 Oct 2004 16:35:55 +0000
Subject: #30281 [Fbk->Opn]: returned size for WBMP is always 1x0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67091@lists.php.net to get a copy of this message
ID: 30281 User updated by: spam at batz dot org Reported By: spam at batz dot org -Status: Feedback +Status: Open Bug Type: GetImageSize related Operating System: Windows XP PHP Version: 5.0.1 New Comment: Any file in ICO-format should do it. But you can just use http://www.favicon.com/favicon.ico as sample. Previous Comments: ------------------------------------------------------------------------ [2004-09-30 03:16:00] iliaa@php.net Please supply the image used. ------------------------------------------------------------------------ [2004-09-29 21:25:49] spam at batz dot org 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 this bug report at http://bugs.php.net/?id=30281&edit=1

« previous php.bugs (#67091) next »