Update webp to v1.0.0

This commit is contained in:
Surma
2018-06-14 13:32:05 +01:00
parent 6a6d478f77
commit 695bbed12b
9 changed files with 7 additions and 4 deletions

View File

@@ -27,6 +27,7 @@
get_result_pointer: Module.cwrap('get_result_pointer', 'number', []),
get_result_size: Module.cwrap('get_result_size', 'number', []),
};
console.log('Version:', api.version().toString(16));
const image = await loadImage('../example.png');
const p = api.create_buffer(image.width, image.height);
Module.HEAP8.set(image.data, p);