fix: correctly check for image processing lib

This commit is contained in:
Adhiraj Singh
2022-09-12 12:24:55 +05:30
parent 64f3f08adb
commit 35b7a310a4
2 changed files with 11 additions and 11 deletions

View File

@@ -36,11 +36,11 @@ const getImageProcessingLibrary = async() => {
return sharp
})()
])
if(sharp) {
if(sharp?.default) {
return { sharp }
}
if(jimp) {
if(jimp?.read) {
return { jimp }
}