File::isConvertableToImage() 

\nn\t3::File()->isConvertableToImage($filename = NULL); 

Specifies whether the file can be converted to an image

\nn\t3::File()->isConvertableToImage('image.jpg'); => returns true
\nn\t3::File()->isConvertableToImage('text.ppt'); => returns false
Copied!

| @return boolean

Source Code 

public function isConvertableToImage($filename = null)
{
	if (!$filename) return false;
	$suffix = $this->suffix($filename);
	$arr = array_merge(self::$TYPES['image'], self::$TYPES['pdf']);
	return in_array($suffix, $arr);
}
Copied!