@crysnovax/baileys 2.6.0 → 2.6.1

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.
package/README.md CHANGED
@@ -118,6 +118,7 @@ const crysnova = {
118
118
  | Image Processing | ✅ | Auto-detects `sharp`, `@napi-rs/image`, or `jimp` |
119
119
  | Safe FFmpeg | ✅ | Uses `spawn` instead of `exec` |
120
120
  | In-Memory Store | ✅ | Reintroduced with minimal ESM adaptation |
121
+ | HD Profile Picture | 🆕 | Full-size upload with no crop or resize via `{ hd: true }` |
121
122
 
122
123
  ---
123
124
 
@@ -1335,8 +1336,18 @@ const community = await sock.communityGetInviteInfo('ABC123456789')
1335
1336
  ```javascript
1336
1337
  // Profile picture
1337
1338
  const url = await sock.profilePictureUrl(jid, 'image')
1339
+
1340
+ // Standard — auto crop + resize to 720×720
1338
1341
  sock.updateProfilePicture(jid, buffer)
1339
1342
  sock.updateProfilePicture(jid, { url })
1343
+
1344
+ // Standard with custom dimensions
1345
+ sock.updateProfilePicture(jid, { url }, { width: 640, height: 640 })
1346
+
1347
+ // 🆕 HD — full resolution, no crop, no resize
1348
+ sock.updateProfilePicture(jid, buffer, { hd: true })
1349
+ sock.updateProfilePicture(jid, { url }, { hd: true })
1350
+
1340
1351
  sock.removeProfilePicture(jid)
1341
1352
 
1342
1353
  // Profile info