forked from external-repos/squoosh
Fix WebP2 signature
This commit is contained in:
committed by
Ingvar Stepanyan
parent
2c560659a7
commit
2a31a1bd84
@@ -129,7 +129,7 @@ const magicNumberToMimeType = new Map<RegExp, string>([
|
|||||||
[/^II*/, 'image/tiff'],
|
[/^II*/, 'image/tiff'],
|
||||||
[/^MM\x00*/, 'image/tiff'],
|
[/^MM\x00*/, 'image/tiff'],
|
||||||
[/^RIFF....WEBPVP8[LX ]/, 'image/webp'],
|
[/^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'],
|
[/^\x00\x00\x00 ftypavif\x00\x00\x00\x00/, 'image/avif'],
|
||||||
[/^\xff\x0a/, 'image/jpegxl'],
|
[/^\xff\x0a/, 'image/jpegxl'],
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user