Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP getimagesizefromstring - Get Image Information Function

PHP getimagesizefromstring - Get Image Information Function

PHP Image ProcessingPHP Image Processing

getimagesizefromstring — Gets image size information from a string.

Syntax



array getimagesizefromstring ( string $imagedata [, array &$imageinfo ] )

Same as getimagesize() function. The difference is that the first parameter of getimagesizefromstring() is the string representation of the image data, not a file name.

** Parameters**

Example





The output of the above example is:



Array

(

    [0] => 290

    [1] => 69

    [2] => 3

    [3] => width="290" height="69"

    [bits] => 8

    [mime] => image/png

)

PHP Image ProcessingPHP Image Processing