Class WebpImageFormatDetector
Detects Webp file headers.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Formats.Webp
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class WebpImageFormatDetector : IImageFormatDetectorProperties
| Improve this Doc View SourceHeaderSize
Gets the size of the header for this image type.
Declaration
public int HeaderSize { get; }Property Value
| Type | Description | 
|---|---|
| Int32 | The size of the header. | 
Methods
| Improve this Doc View SourceDetectFormat(ReadOnlySpan<Byte>)
Detect mimetype
Declaration
public IImageFormat DetectFormat(ReadOnlySpan<byte> header)Parameters
| Type | Name | Description | 
|---|---|---|
| ReadOnlySpan<Byte> | header | The byte[] containing the file header. | 
Returns
| Type | Description | 
|---|---|
| IImageFormat | returns the mime type of detected otherwise returns null |