lib/FastImageSize.php
protected function getImageSizeByExtension($file, $extension)
	{
		$extension = strtolower($extension);
		$this->loadExtension($extension);
		if (isset($this->classMap[$extension]))
		{
			$this->classMap[$extension]->getSize($file);
		}
	}
protected function getImageSizeByExtension($file, $extension)
	{
		$extension = strtolower($extension);
		$this->loadExtension($extension);
		if (isset($this->classMap[$extension]))
		{
			$this->classMap[$extension]->getSize($file);
		}
	}
protected function getImageSizeByExtension ( $ file , $ extension ) { $ extension = strtolower ( $ extension ) ; $ this -> loadExtension ( $ extension ) ; if ( isset ( $ this -> classMap [ $ extension ] ) ) { $ this -> classMap [ $ extension ] -> getSize ( $ file ) ; } }
Get image size by file extension

@param string $file Path to image that should be checked
@param string $extension Extension/type of image
Get image size by file extension