From 3cda8285a1ad84ed76b1de4dce0d545562da3a6f Mon Sep 17 00:00:00 2001 From: Surma Date: Mon, 3 Aug 2020 19:46:10 +0100 Subject: [PATCH] Update src/lib/util.ts Co-authored-by: Ingvar Stepanyan --- src/lib/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/util.ts b/src/lib/util.ts index 66461a88..1464635e 100644 --- a/src/lib/util.ts +++ b/src/lib/util.ts @@ -104,7 +104,7 @@ const magicNumberToMimeType = new Map([ [/^II*/, 'image/tiff'], [/^MM\x00*/, 'image/tiff'], [/^RIFF....WEBPVP8[LX ]/, 'image/webp'], - [/^\x00\x00\x00\x20\x66\x74\x79\x70\x61\x76\x69\x66\x00\x00\x00\x00/, 'image/avif'], + [/^\x00\x00\x00 ftypavif\x00\x00\x00\x00/, 'image/avif'], ]); export async function sniffMimeType(blob: Blob): Promise {