WordPress at a glance
function is not described

getid3_lib::GetDataImageSize() public WP 1.0

{} It's a method of the class: getid3_lib{}

No Hooks.

Return

Array|false.

Usage

$result = getid3_lib::GetDataImageSize( $imgData, $imageinfo );
$imgData(string) (required)
-
$imageinfo(array) (passed by reference — &)
-

Code of getid3_lib::GetDataImageSize() WP 5.7.2

<?php
public static function GetDataImageSize($imgData, &$imageinfo=array()) {
	if (PHP_VERSION_ID >= 50400) {
		$GetDataImageSize = @getimagesizefromstring($imgData, $imageinfo);
		if ($GetDataImageSize === false || !isset($GetDataImageSize[0], $GetDataImageSize[1])) {
			return false;
		}
		$GetDataImageSize['height'] = $GetDataImageSize[0];
		$GetDataImageSize['width'] = $GetDataImageSize[1];
		return $GetDataImageSize;
	}
	static $tempdir = '';
	if (empty($tempdir)) {
		if (function_exists('sys_get_temp_dir')) {
			$tempdir = sys_get_temp_dir(); // https://github.com/JamesHeinrich/getID3/issues/52
		}

		// yes this is ugly, feel free to suggest a better way
		if (include_once(dirname(__FILE__).'/getid3.php')) {
			$getid3_temp = new getID3();
			if ($getid3_temp_tempdir = $getid3_temp->tempdir) {
				$tempdir = $getid3_temp_tempdir;
			}
			unset($getid3_temp, $getid3_temp_tempdir);
		}
	}
	$GetDataImageSize = false;
	if ($tempfilename = tempnam($tempdir, 'gI3')) {
		if (is_writable($tempfilename) && is_file($tempfilename) && ($tmp = fopen($tempfilename, 'wb'))) {
			fwrite($tmp, $imgData);
			fclose($tmp);
			$GetDataImageSize = @getimagesize($tempfilename, $imageinfo);
			if (($GetDataImageSize === false) || !isset($GetDataImageSize[0]) || !isset($GetDataImageSize[1])) {
				return false;
			}
			$GetDataImageSize['height'] = $GetDataImageSize[0];
			$GetDataImageSize['width']  = $GetDataImageSize[1];
		}
		unlink($tempfilename);
	}
	return $GetDataImageSize;
}