@shibam/sticker-maker 1.1.1 → 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.
@@ -111,11 +111,17 @@ var ToWebp = function (buffer, metaInfo, mimeExt, mimeType) { return __awaiter(v
111
111
  fit: sharp_1.fit.fill
112
112
  });
113
113
  }
114
+ else {
115
+ res.resize(512, 512, {
116
+ fit: sharp_1.fit.contain,
117
+ background: { r: 0, g: 0, b: 0, alpha: 0 }
118
+ });
119
+ }
114
120
  return [2 /*return*/, res
115
121
  .toFormat('webp')
116
122
  .webp({
117
123
  quality: metaInfo.quality,
118
- lossless: mimeExt.includes('gif') ? false : true
124
+ lossless: mimeExt.includes('gif') ? true : false
119
125
  })
120
126
  .toBuffer()];
121
127
  case 4:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shibam/sticker-maker",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "A package for creating stickers",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",