mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-18 11:39:08 +00:00
Hardcode quantization pass
This commit is contained in:
7
src/codecs/imagequant/quantizer.ts
Normal file
7
src/codecs/imagequant/quantizer.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import QuantizerWorker from './Quantizer.worker';
|
||||
|
||||
export const name = 'Image Quanitzer';
|
||||
export async function quantize(data: ImageData): Promise<ImageData> {
|
||||
const quantizer = await new QuantizerWorker();
|
||||
return quantizer.quantize(data);
|
||||
}
|
||||
Reference in New Issue
Block a user