mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-18 03:29:17 +00:00
Make emscripten with threads compile
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
Module.onRuntimeInitialized = async _ => {
|
||||
console.log('Version:', Module.version().toString(16));
|
||||
const image = await loadImage('../example.png');
|
||||
const image = await loadImage('../really_big.jpg');
|
||||
let start = performance.now();
|
||||
const result = Module.encode(image.data, image.width, image.height, {
|
||||
quality: 75,
|
||||
|
||||
Reference in New Issue
Block a user