@queenanya/baileys 7.2.9 → 7.3.0

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.
@@ -193,10 +193,10 @@ const generateProfilePictureFull = async (img) => {
193
193
  const cropped = jimp.crop(0, 0, jimp.getWidth(), jimp.getHeight());
194
194
  let width = jimp.getWidth(), hight = jimp.getHeight(), ratio;
195
195
  if (width > hight) {
196
- ratio = jimp.getWidth() / 1280;
196
+ ratio = jimp.getWidth() / 720;
197
197
  }
198
198
  else {
199
- ratio = jimp.getWidth() / 1280;
199
+ ratio = jimp.getWidth() / 324;
200
200
  }
201
201
  ;
202
202
  width = width / ratio;
@@ -215,7 +215,7 @@ const generateProfilePictureFP = async (buffer) => {
215
215
  const max = jimp.getHeight();
216
216
  const cropped = jimp.crop(0, 0, min, max);
217
217
  return {
218
- img: await cropped.scaleToFit(1280, 1280).getBufferAsync(Jimp.MIME_JPEG),
218
+ img: await cropped.scaleToFit(720, 720).getBufferAsync(Jimp.MIME_JPEG),
219
219
  preview: await cropped.normalize().getBufferAsync(Jimp.MIME_JPEG),
220
220
  };
221
221
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@queenanya/baileys",
3
- "version": "7.2.9",
3
+ "version": "7.3.0",
4
4
  "description": "WhatsApp API",
5
5
  "keywords": [
6
6
  "whatsapp",