public function setSourceDetails()
	{
		if ( !file_exists( $this->sourcePath ) )
		{
			throw new FileNotFoundException( $this->sourcePath );
		}

		if ( is_dir( $this->sourcePath ) )
		{
			throw new FileNotFoundException( $this->sourcePath );
		}

		$imageDetails = getimagesize( $this->sourcePath );

		$this->sourceWidth = $imageDetails[0];
		$this->sourceHeight = $imageDetails[1];

		$this->scaleWidth = $this->sourceWidth;
		$this->scaleHeight = $this->sourceHeight;

		$this->aspectRatio = $this->sourceWidth / $this->sourceHeight;

		$this->frameWidth = $this->sourceWidth;
		$this->frameHeight = $this->sourceHeight;

		$this->sourceFormat = $imageDetails[ 2 ];
	}
public function setSourceDetails()
	{
		if ( !file_exists( $this->sourcePath ) )
		{
			throw new FileNotFoundException( $this->sourcePath );
		}

		if ( is_dir( $this->sourcePath ) )
		{
			throw new FileNotFoundException( $this->sourcePath );
		}

		$imageDetails = getimagesize( $this->sourcePath );

		$this->sourceWidth = $imageDetails[0];
		$this->sourceHeight = $imageDetails[1];

		$this->scaleWidth = $this->sourceWidth;
		$this->scaleHeight = $this->sourceHeight;

		$this->aspectRatio = $this->sourceWidth / $this->sourceHeight;

		$this->frameWidth = $this->sourceWidth;
		$this->frameHeight = $this->sourceHeight;

		$this->sourceFormat = $imageDetails[ 2 ];
	}
public function setSourceDetails ( ) { if ( ! file_exists ( $ this -> sourcePath ) ) { throw new FileNotFoundException ( $ this -> sourcePath ) ; } if ( is_dir ( $ this -> sourcePath ) ) { throw new FileNotFoundException ( $ this -> sourcePath ) ; } $ imageDetails = getimagesize ( $ this -> sourcePath ) ; $ this -> sourceWidth = $ imageDetails [ 0 ] ; $ this -> sourceHeight = $ imageDetails [ 1 ] ; $ this -> scaleWidth = $ this -> sourceWidth ; $ this -> scaleHeight = $ this -> sourceHeight ; $ this -> aspectRatio = $ this -> sourceWidth / $ this -> sourceHeight ; $ this -> frameWidth = $ this -> sourceWidth ; $ this -> frameHeight = $ this -> sourceHeight ; $ this -> sourceFormat = $ imageDetails [ 2 ] ; }
Reads basic information about the metrics of the source image.

@throws FileNotFoundException	Thrown if the source image couldn't be found.
Reads basic information about the metrics of the source image .