mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: correctly check for image processing lib
This commit is contained in:
@@ -36,11 +36,11 @@ const getImageProcessingLibrary = async() => {
|
||||
return sharp
|
||||
})()
|
||||
])
|
||||
if(sharp) {
|
||||
if(sharp?.default) {
|
||||
return { sharp }
|
||||
}
|
||||
|
||||
if(jimp) {
|
||||
if(jimp?.read) {
|
||||
return { jimp }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user