Fix AVIF in libsquoosh

This commit is contained in:
Surma
2021-05-24 23:54:26 +01:00
parent fa331586d7
commit 2ee1dfa867

View File

@@ -273,17 +273,19 @@ export const codecs = {
dec: () => instantiateEmscriptenWasm(avifDec, avifDecWasm), dec: () => instantiateEmscriptenWasm(avifDec, avifDecWasm),
enc: () => instantiateEmscriptenWasm(avifEnc, avifEncWasm), enc: () => instantiateEmscriptenWasm(avifEnc, avifEncWasm),
defaultEncoderOptions: { defaultEncoderOptions: {
minQuantizer: 33, cqLevel: 33,
maxQuantizer: 63, cqAlphaLevel: -1,
minQuantizerAlpha: 33, denoiseLevel: 0,
maxQuantizerAlpha: 63,
tileColsLog2: 0, tileColsLog2: 0,
tileRowsLog2: 0, tileRowsLog2: 0,
speed: 8, speed: 6,
subsample: 1, subsample: 1,
chromaDeltaQ: false,
sharpness: 0,
tune: 0 /* AVIFTune.auto */,
}, },
autoOptimize: { autoOptimize: {
option: 'maxQuantizer', option: 'cqLevel',
min: 0, min: 0,
max: 62, max: 62,
}, },