note 109063 added to function.getimagesize
| From: | chris at ocportal dot com | Date: | Mon, 18 Jun 2012 10:59:48 +0000 |
| Subject: | note 109063 added to function.getimagesize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-188660@lists.php.net to get a copy of this message | ||
Note that animated gifs may have frames width different dimensions. This function will not get the
first frame's width/height. GIFs define "Logical Screen Descriptor" dimensions, which
are the maximum for all frames.
To get the screen descriptor dimensions, use:
$header = unpack('@6/vwidth/vheight', $binaryData);
// $header['width'] and $header['width'];
----
Server IP: 69.147.83.197
Probable Submitter: 188.221.7.254
----
Manual Page -- http://www.php.net/manual/en/function.getimagesize.php
Edit -- https://master.php.net/note/edit/109063
Del: integrated -- https://master.php.net/note/delete/109063/integrated
Del: useless -- https://master.php.net/note/delete/109063/useless
Del: bad code -- https://master.php.net/note/delete/109063/bad+code
Del: spam -- https://master.php.net/note/delete/109063/spam
Del: non-english -- https://master.php.net/note/delete/109063/non-english
Del: in docs -- https://master.php.net/note/delete/109063/in+docs
Del: other reasons-- https://master.php.net/note/delete/109063
Reject -- https://master.php.net/note/reject/109063
Search -- https://master.php.net/manage/user-notes.php