PHP getimagesizefromstring - Get Image Information Function
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**
- ** imagedata:** String representation of the image data.
- ** imageinfo:** See getimagesize() function in Vue 3.
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 Processing