lib/Type/TypeTif.php
protected function setSizeInfo($dimensionType, $fieldLength, $ifdValue)
	{
		// Set size of field
		$fieldSize = $fieldLength === self::TIF_TAG_TYPE_SHORT ? $this->typeShort : $this->typeLong;

		// Get actual dimensions from IFD
		if ($dimensionType === self::TIF_TAG_IMAGE_HEIGHT)
		{
			$this->size = array_merge($this->size, unpack($fieldSize . 'height', $ifdValue));
		}
		else if ($dimensionType === self::TIF_TAG_IMAGE_WIDTH)
		{
			$this->size = array_merge($this->size, unpack($fieldSize . 'width', $ifdValue));
		}
	}
protected function setSizeInfo($dimensionType, $fieldLength, $ifdValue)
	{
		// Set size of field
		$fieldSize = $fieldLength === self::TIF_TAG_TYPE_SHORT ? $this->typeShort : $this->typeLong;

		// Get actual dimensions from IFD
		if ($dimensionType === self::TIF_TAG_IMAGE_HEIGHT)
		{
			$this->size = array_merge($this->size, unpack($fieldSize . 'height', $ifdValue));
		}
		else if ($dimensionType === self::TIF_TAG_IMAGE_WIDTH)
		{
			$this->size = array_merge($this->size, unpack($fieldSize . 'width', $ifdValue));
		}
	}
protected function setSizeInfo ( $ dimensionType , $ fieldLength , $ ifdValue ) { // Set size of field $ fieldSize = $ fieldLength === self :: TIF_TAG_TYPE_SHORT ? $ this -> typeShort : $ this -> typeLong ; // Get actual dimensions from IFD if ( $ dimensionType === self :: TIF_TAG_IMAGE_HEIGHT ) { $ this -> size = array_merge ( $ this -> size , unpack ( $ fieldSize . 'height' , $ ifdValue ) ) ; } else if ( $ dimensionType === self :: TIF_TAG_IMAGE_WIDTH ) { $ this -> size = array_merge ( $ this -> size , unpack ( $ fieldSize . 'width' , $ ifdValue ) ) ; } }
Set size info

@param int $dimensionType Type of dimension. Either width or height
@param int $fieldLength Length of field. Either short or long
@param string $ifdValue String value of IFD field
Set size info