Skip to content

Commit

Permalink
Update node-webpmux 2.x syntax to 3.x (support upstream breaking chan…
Browse files Browse the repository at this point in the history
…ge) (pedroslopez#762)

Co-authored-by: Apeiron <apeiron@none>
  • Loading branch information
ApeironTsuka and Apeiron authored Jul 16, 2021
1 parent dc9b7e5 commit 04d2308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ class Util {
let jsonBuffer = Buffer.from(JSON.stringify(json), 'utf8');
let exif = Buffer.concat([exifAttr, jsonBuffer]);
exif.writeUIntLE(jsonBuffer.length, 14, 4);
await img.loadBuffer(Buffer.from(webpMedia.data, 'base64'));
await img.load(Buffer.from(webpMedia.data, 'base64'));
img.exif = exif;
webpMedia.data = (await img.saveBuffer()).toString('base64');
webpMedia.data = (await img.save(null)).toString('base64');
}

return webpMedia;
Expand Down

0 comments on commit 04d2308

Please sign in to comment.