mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: return og dimensions when generating thumb
This commit is contained in:
@@ -41,7 +41,7 @@ export const getUrlInfo = async(
|
||||
let jpegThumbnail: Buffer | undefined = undefined
|
||||
try {
|
||||
jpegThumbnail = image
|
||||
? await getCompressedJpegThumbnail(image, opts)
|
||||
? (await getCompressedJpegThumbnail(image, opts)).buffer
|
||||
: undefined
|
||||
} catch(error) {
|
||||
logger?.debug(
|
||||
|
||||
Reference in New Issue
Block a user