#28432 [Opn->WFx]: getimagesize return incorect width & height
| From: | iliaa@php.net | Date: | Tue, 18 May 2004 14:16:17 +0000 |
| Subject: | #28432 [Opn->WFx]: getimagesize return incorect width & height | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-59733@lists.php.net to get a copy of this message | ||
ID: 28432
Updated by: iliaa@php.net
Reported By: young@php.net
-Status: Open
+Status: Wont fix
Bug Type: GetImageSize related
Operating System: FreeBSD 4.6-STABLE
PHP Version: 4.3.6
New Comment:
The problem is the result of a rather peculiar image. The
image dimensions are 80x124 but the effective canvas size
according to gif header is 128x128, which is what PHP is
returning. You can get this data via ImageMagic by doing
identify -verbose image.gif | grep geometry. PHP returns
this field since this represents the overall image
dimensions, returning individual image sizes could result
in incorrect data for animated gifs.
Previous Comments:
------------------------------------------------------------------------
[2004-05-18 14:36:41] young@php.net
Description:
------------
Image: http://young.org.ua/image.gif
PHP code:
<?php
print_r(getimagesize("image.gif"));
?>
Result:
Array
(
[0] => 128
[1] => 128
[2] => 1
[3] => width="128" height="128"
[bits] => 8
[channels] => 3
[mime] => image/gif
)
Image Magic info:
im40a9f63a60720_2.gif GIF 80x124+24+4 PseudoClass 256c 8-bit 11.8k 0.0u
0:01
AcdSee info:
80x124
Wich information about image size is correct?
And why i get this difference?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28432&edit=1