note 34584 added to function.getimagesize
| From: | markus at dnet dot it | Date: | Thu, 31 Jul 2003 12:51:26 +0000 |
| Subject: | note 34584 added to function.getimagesize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-53072@lists.php.net to get a copy of this message | ||
PHP 4.2.2 seems to have a bug, as it misses a closing '"' in the fourth element of
the array, resulting in something like 'width="100 height="160"'.
To correct this, you may use:
$imginfo = getimagesize($filename);
$width = $imginfo[0];
$height = $imginfo[1];
$dimension = "width=$width height=$height";
----
Manual Page -- http://www.php.net/manual/en/function.getimagesize.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34584
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34584&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34584&report=yes