note 109063 modified in function.getimagesize by danbrown
| From: | danbrown@php.net | Date: | Mon, 18 Jun 2012 14:14:59 +0000 |
| Subject: | note 109063 modified in function.getimagesize by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-188666@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: <?php $header =
unpack('@6/vwidth/vheight', $binaryData); //
$header['width'] and $header['width']; ?>
--was--
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'];
http://php.net/manual/en/function.getimagesize.php