@shibam/sticker-maker 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -114,13 +114,14 @@ var ToWebp = function (buffer, metaInfo, mimeExt, mimeType) { return __awaiter(v
114
114
  else {
115
115
  res.resize(512, 512, {
116
116
  fit: sharp_1.fit.contain,
117
+ background: { r: 0, g: 0, b: 0, alpha: 0 }
117
118
  });
118
119
  }
119
120
  return [2 /*return*/, res
120
121
  .toFormat('webp')
121
122
  .webp({
122
123
  quality: metaInfo.quality,
123
- lossless: mimeExt.includes('gif') ? false : true
124
+ lossless: mimeExt.includes('gif') ? true : false
124
125
  })
125
126
  .toBuffer()];
126
127
  case 4:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shibam/sticker-maker",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "A package for creating stickers",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",