Query: getimagesizefromstring
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETIMAGESIZEFROMSTRING(3) 1 GETIMAGESIZEFROMSTRING(3) getimagesizefromstring - Get the size of an image from a stringSYNOPSISarray getimagesizefromstring (string $imagedata, [array &$imageinfo])DESCRIPTIONIdentical to getimagesize(3) except that getimagesizefromstring(3) accepts a string instead of a file name as the first parameter. See the getimagesize(3) documentation for details on how this function works.PARAMETERSo $imagedata - The image data, as a string. o $imageinfo - See getimagesize(3).RETURN VALUESSee getimagesize(3).EXAMPLESExample #1 getimagesizefromstring(3) example <?php $img = '/path/to/test.png'; // Open as a file $size_info1 = getimagesize($img); // Or open as a string $data = file_get_contents($img); $size_info2 = getimagesizefromstring($data); ?>SEE ALSOgetimagesize(3). PHP Documentation Group GETIMAGESIZEFROMSTRING(3)
Related Man Pages |
---|
img-xpm(n) - osx |
img-xbm(n) - osx |
exif_imagetype(3) - php |
getimagesizefromstring(3) - php |
image_type_to_mime_type(3) - php |
Similar Topics in the Unix Linux Community |
---|
GetImageSize() with Unix? |