forked from Spacefish/NeoSolve.ImageSharp.AVIF
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAVIFFormat.cs
More file actions
19 lines (14 loc) · 686 Bytes
/
AVIFFormat.cs
File metadata and controls
19 lines (14 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using SixLabors.ImageSharp.Metadata;
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats;
namespace NeoSolve.ImageSharp.AVIF;
public class AVIFFormat : IImageFormat {
public string Name => "AVIF";
public static AVIFFormat Instance { get; } = new AVIFFormat();
public string DefaultMimeType => "image/avif";
public IEnumerable<string> MimeTypes => AVIFConstants.MimeTypes;
public IEnumerable<string> FileExtensions => AVIFConstants.FileExtensions;
public IImageDecoder Decoder { get; } = new AVIFDecoder();
public IImageEncoder Encoder { get; } = new AVIFEncoder();
public ImageMetadata CreateDefaultFormatMetadata() => new();
}