mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-16 10:39:53 +00:00
@@ -105,7 +105,7 @@ const magicNumberToMimeType = new Map<RegExp, string>([
|
|||||||
[/^I I/, 'image/tiff'],
|
[/^I I/, 'image/tiff'],
|
||||||
[/^II*/, 'image/tiff'],
|
[/^II*/, 'image/tiff'],
|
||||||
[/^MM\x00*/, 'image/tiff'],
|
[/^MM\x00*/, 'image/tiff'],
|
||||||
[/^RIFF....WEBPVP8 /, 'image/webp'],
|
[/^RIFF....WEBPVP8[LX ]/, 'image/webp'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
export async function sniffMimeType(blob: Blob): Promise<string> {
|
export async function sniffMimeType(blob: Blob): Promise<string> {
|
||||||
|
|||||||
Reference in New Issue
Block a user