Add AVIF decoder to squoosh

This commit is contained in:
Surma
2020-02-05 16:44:51 -08:00
committed by Ingvar Stepanyan
parent 34cb55978f
commit 02807aab32
9 changed files with 481 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
export const name = 'WASM AVIF Decoder';
const supportedMimeTypes = ['image/avif'];
export function canHandleMimeType(mimeType: string): boolean {
return supportedMimeTypes.includes(mimeType);
}