lib/FastImageSize.php
protected function getImagesizeUnknownType($filename)
	{
		// Grab the maximum amount of bytes we might need
		$data = $this->getImage($filename, 0, Type\TypeJpeg::JPEG_MAX_HEADER_SIZE, false);

		if ($data !== false)
		{
			$this->loadAllTypes();
			foreach ($this->type as $imageType)
			{
				$imageType->getSize($filename);

				if (sizeof($this->size) > 1)
				{
					break;
				}
			}
		}
	}
protected function getImagesizeUnknownType($filename)
	{
		// Grab the maximum amount of bytes we might need
		$data = $this->getImage($filename, 0, Type\TypeJpeg::JPEG_MAX_HEADER_SIZE, false);

		if ($data !== false)
		{
			$this->loadAllTypes();
			foreach ($this->type as $imageType)
			{
				$imageType->getSize($filename);

				if (sizeof($this->size) > 1)
				{
					break;
				}
			}
		}
	}
protected function getImagesizeUnknownType ( $ filename ) { // Grab the maximum amount of bytes we might need $ data = $ this -> getImage ( $ filename , 0 , Type \ TypeJpeg :: JPEG_MAX_HEADER_SIZE , false ) ; if ( $ data !== false ) { $ this -> loadAllTypes ( ) ; foreach ( $ this -> type as $ imageType ) { $ imageType -> getSize ( $ filename ) ; if ( sizeof ( $ this -> size ) > 1 ) { break ; } } } }
Get dimensions of image if type is unknown

@param string $filename Path to file
Get dimensions of image if type is unknown