note 37321 added to function.imagesx
| From: | samatpucazonedotcomm at rn2 dot php dot net | Date: | Mon, 10 Nov 2003 19:57:18 +0000 |
| Subject: | note 37321 added to function.imagesx | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60213@lists.php.net to get a copy of this message | ||
I got the wrong width on an animated gif. The size was correct, but width was 20 pixels less than it
should be.
By using getimagesize() I got correct results:
$image=getimagesize($file_name);
$x = $image[0];
$y = $image[1];
where $x and $y will give you the width and hight!
----
Manual Page -- http://www.php.net/manual/en/function.imagesx.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37321
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37321&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37321&report=yes
Search -- http://master.php.net/manage/user-notes.php