public function isSupportedImageFormat($filename)
	{
		$info = new ImageInfo($filename);
		if ($info->hasError()) {
			$this->container->getLogger()->error($info->getError());
			return false;
		}

		if ( ! $this->isMimeTypeImage($info->getMime())) {
			return false;
		}

		return ImageProcessor\ImageProcessor::isSupportedImageType($info->getType());
	}
public function isSupportedImageFormat($filename)
	{
		$info = new ImageInfo($filename);
		if ($info->hasError()) {
			$this->container->getLogger()->error($info->getError());
			return false;
		}

		if ( ! $this->isMimeTypeImage($info->getMime())) {
			return false;
		}

		return ImageProcessor\ImageProcessor::isSupportedImageType($info->getType());
	}
public function isSupportedImageFormat ( $ filename ) { $ info = new ImageInfo ( $ filename ) ; if ( $ info -> hasError ( ) ) { $ this -> container -> getLogger ( ) -> error ( $ info -> getError ( ) ) ; return false ; } if ( ! $ this -> isMimeTypeImage ( $ info -> getMime ( ) ) ) { return false ; } return ImageProcessor \ ImageProcessor :: isSupportedImageType ( $ info -> getType ( ) ) ; }
Is current image format supported by image processor
@param string $filename Path to file
Is current image format supported by image processor