Merge pull request #50 from GoogleChromeLabs/webp-dec

Decoder for webp
This commit is contained in:
Surma
2018-06-14 13:25:49 +01:00
committed by GitHub
8 changed files with 1300 additions and 1 deletions

View File

@@ -38,7 +38,7 @@
api.free_result(resultPointer);
api.destroy_buffer(p);
const blob = new Blob([result], {type: 'image/jpeg'});
const blob = new Blob([result], {type: 'image/webp'});
const blobURL = URL.createObjectURL(blob);
const img = document.createElement('img');
img.src = blobURL;