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);
}