getimagesizefromstring

PHP 5 >= 5.4.0, PHP 7, PHP 8
getimagesizefromstring - Get the size of an image from a string
Manual
Code Examples

getimagesizefromstring( string$string, [arrayimage_info = null] ): array|false

Identical to getimagesize except that getimagesizefromstring accepts a string instead of a file name as the first parameter.

See the getimagesize documentation for details on how this function works.

Parameters

string

The image data, as a string.

image_info

See getimagesize.

Return Values

See getimagesize.

Related Functions

Example of getimagesizefromstring

Show all examples for getimagesizefromstring

PHP Version:


Function getimagesizefromstring:

Image Processing and GD Functions

Most used PHP functions