Spaces:
Sleeping
Sleeping
Update lib/converter.js
Browse files- lib/converter.js +2 -2
lib/converter.js
CHANGED
@@ -8,11 +8,11 @@ function convertWebpToPng(input) {
|
|
8 |
const response = await fetch(input);
|
9 |
const images = await response.arrayBuffer();
|
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);
|
17 |
}
|
18 |
} catch (e) {
|
|
|
8 |
const response = await fetch(input);
|
9 |
const images = await response.arrayBuffer();
|
10 |
const converting = await sharp(images);
|
11 |
+
const converted = await 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 = await converting.toFormat('png').png({ quality: 90 }).toBuffer();
|
16 |
resolve(converted);
|
17 |
}
|
18 |
} catch (e) {
|