src/WordpressAttachmentFileResolver.php
public function isFileExtensionImage($name) {
		static $imageExtensions = array(
			'jpg' => true,
			'png' => true,
			'jpeg' => true,
			'bmp' => true,
			'ico' => true,
			'gif' => true,
			'tiff' => true,
			'jpeg-large' => true,
			'jpg-large' => true,
		);
		$ext = pathinfo($name, PATHINFO_EXTENSION);
		return ($imageExtensions && isset($imageExtensions[$ext]) && $imageExtensions[$ext]);
	}
public function isFileExtensionImage($name) {
		static $imageExtensions = array(
			'jpg' => true,
			'png' => true,
			'jpeg' => true,
			'bmp' => true,
			'ico' => true,
			'gif' => true,
			'tiff' => true,
			'jpeg-large' => true,
			'jpg-large' => true,
		);
		$ext = pathinfo($name, PATHINFO_EXTENSION);
		return ($imageExtensions && isset($imageExtensions[$ext]) && $imageExtensions[$ext]);
	}
public function isFileExtensionImage ( $ name ) { static $ imageExtensions = array ( 'jpg' => true , 'png' => true , 'jpeg' => true , 'bmp' => true , 'ico' => true , 'gif' => true , 'tiff' => true , 'jpeg-large' => true , 'jpg-large' => true , ) ; $ ext = pathinfo ( $ name , PATHINFO_EXTENSION ) ; return ( $ imageExtensions && isset ( $ imageExtensions [ $ ext ] ) && $ imageExtensions [ $ ext ] ) ; }
Check if filename is image based on filename

@return boolean
Check if filename is image based on filename