Spaces:
Sleeping
Sleeping
Update lib/converter.js
Browse files- lib/converter.js +3 -3
lib/converter.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import sharp from "sharp";
|
2 |
-
|
3 |
|
4 |
-
|
5 |
-
return new Promise((resolve, reject) => {
|
6 |
try {
|
7 |
if (typeof input === "string") {
|
8 |
const response = await fetch(input);
|
|
|
1 |
import sharp from "sharp";
|
2 |
+
import fetch from "node-fetch";
|
3 |
|
4 |
+
function convertWebpToPng(input) {
|
5 |
+
return new Promise(async(resolve, reject) => {
|
6 |
try {
|
7 |
if (typeof input === "string") {
|
8 |
const response = await fetch(input);
|