using SixLabors.ImageSharp; namespace VberZero.Tools; public class ImageFormatHelper { public static string GetRawImageFormat(byte[] fileBytes) { using var image = Image.Load(fileBytes, out var format); return format.FileExtensions.First(); } }