public static function imageSizeFromString($imagedata, &$imageinfo = null)
    {
        $uri = 'data://application/octet-stream;base64,'.\base64_encode($imagedata);
        if ($imageinfo !== null) {
            return \getimagesize($uri, $imageinfo);
        }
        return \getimagesize($uri);
    }
public static function imageSizeFromString($imagedata, &$imageinfo = null)
    {
        $uri = 'data://application/octet-stream;base64,'.\base64_encode($imagedata);
        if ($imageinfo !== null) {
            return \getimagesize($uri, $imageinfo);
        }
        return \getimagesize($uri);
    }
public static function imageSizeFromString ( $ imagedata , & $ imageinfo = null ) { $ uri = 'data://application/octet-stream;base64,' . \ base64_encode ( $ imagedata ) ; if ( $ imageinfo !== null ) { return \ getimagesize ( $ uri , $ imageinfo ) ; } return \ getimagesize ( $ uri ) ; }
Get the size of an image from a string

@param string $imagedata - Binary image data
@param &array $imageinfo - Reference to a metadata array

@return array
Get the size of an image from a string