src/ImageCompare.php
private function resizeImage($path) {
		$mime = $this->mimeType($path);

		$t = imagecreatetruecolor(8, 8);
		
		$source = $this->createImage($path);
		
		imagecopyresized($t, $source, 0, 0, 0, 0, 8, 8, $mime[0], $mime[1]);
		
		return $t;
	}
private function resizeImage($path) {
		$mime = $this->mimeType($path);

		$t = imagecreatetruecolor(8, 8);
		
		$source = $this->createImage($path);
		
		imagecopyresized($t, $source, 0, 0, 0, 0, 8, 8, $mime[0], $mime[1]);
		
		return $t;
	}
private function resizeImage ( $ path ) { $ mime = $ this -> mimeType ( $ path ) ; $ t = imagecreatetruecolor ( 8 , 8 ) ; $ source = $ this -> createImage ( $ path ) ; imagecopyresized ( $ t , $ source , 0 , 0 , 0 , 0 , 8 , 8 , $ mime [ 0 ] , $ mime [ 1 ] ) ; return $ t ; }
Resize the image to a 8x8 square and returns as image resource.

@param string $path Path to image

@return resource Image resource identifier
Resize the image to a 8x8 square and returns as image resource .