lib/Type/TypeJpeg.php
protected function extractSizeInfo($i)
	{
		// Extract size info from SOF marker
		list(, $unpacked) = unpack("H*", substr($this->data, $i - 1 + self::LONG_SIZE, self::LONG_SIZE));

		// Get width and height from unpacked size info
		$size = array(
			'width'		=> hexdec(substr($unpacked, 4, 4)),
			'height'	=> hexdec(substr($unpacked, 0, 4)),
		);

		return $size;
	}
protected function extractSizeInfo($i)
	{
		// Extract size info from SOF marker
		list(, $unpacked) = unpack("H*", substr($this->data, $i - 1 + self::LONG_SIZE, self::LONG_SIZE));

		// Get width and height from unpacked size info
		$size = array(
			'width'		=> hexdec(substr($unpacked, 4, 4)),
			'height'	=> hexdec(substr($unpacked, 0, 4)),
		);

		return $size;
	}
protected function extractSizeInfo ( $ i ) { // Extract size info from SOF marker list ( , $ unpacked ) = unpack ( "H*" , substr ( $ this -> data , $ i - 1 + self :: LONG_SIZE , self :: LONG_SIZE ) ) ; // Get width and height from unpacked size info $ size = array ( 'width' => hexdec ( substr ( $ unpacked , 4 , 4 ) ) , 'height' => hexdec ( substr ( $ unpacked , 0 , 4 ) ) , ) ; return $ size ; }
Extract size info from data

@param int $i Current index
@return array Size info of current marker
Extract size info from data