Fix WebP2 signature

This commit is contained in:
Ingvar Stepanyan
2020-11-02 17:46:22 +00:00
committed by Ingvar Stepanyan
parent 2c560659a7
commit 2a31a1bd84

View File

@@ -129,7 +129,7 @@ const magicNumberToMimeType = new Map<RegExp, string>([
[/^II*/, 'image/tiff'],
[/^MM\x00*/, 'image/tiff'],
[/^RIFF....WEBPVP8[LX ]/, 'image/webp'],
[/\xF4\xFF\x6F/, 'image/webp2'], // Not sure about this one tho lol
[/^\xF4\xFF\x6F/, 'image/webp2'],
[/^\x00\x00\x00 ftypavif\x00\x00\x00\x00/, 'image/avif'],
[/^\xff\x0a/, 'image/jpegxl'],
]);