Spaces:
Running
Running
Update lib/converter.js
Browse files- lib/converter.js +1 -1
lib/converter.js
CHANGED
@@ -10,7 +10,7 @@ async function convertWebpToPng(input) {
|
|
10 |
const converting = await sharp(images);
|
11 |
const converted = converting.toFormat('png').png({ quality: 90 }).toBuffer();
|
12 |
resolve(converted);
|
13 |
-
} else {
|
14 |
const converting = await sharp(input);
|
15 |
const converted = converting.toFormat('png').png({ quality: 90 }).toBuffer();
|
16 |
resolve(converted);
|
|
|
10 |
const converting = await sharp(images);
|
11 |
const converted = converting.toFormat('png').png({ quality: 90 }).toBuffer();
|
12 |
resolve(converted);
|
13 |
+
} else if(typeof input == "object") {
|
14 |
const converting = await sharp(input);
|
15 |
const converted = converting.toFormat('png').png({ quality: 90 }).toBuffer();
|
16 |
resolve(converted);
|