ImageMagick.ImageOptimizer.GetFormatInformation C# (CSharp) Method

GetFormatInformation() private static method

private static GetFormatInformation ( FileInfo file ) : MagickFormatInfo
file System.IO.FileInfo
return MagickFormatInfo
    private static MagickFormatInfo GetFormatInformation(FileInfo file)
    {
      MagickFormatInfo info = MagickNET.GetFormatInformation(file);
      if (info != null)
        return info;

      MagickImageInfo imageInfo = new MagickImageInfo(file);
      return MagickNET.GetFormatInformation(imageInfo.Format);
    }