-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Conver http response images with .webp to .jpg #1585
Copy link
Copy link
Closed
Labels
Description
Hi, I need help setting up sharp in converting pictures from webp to jpg | png ... when responding from the server.
example -
let response;
const request = http.get ("/ test / test.webp", resp => {
response = resp;
})
// ***********************
// .webp to jpg
const writeableStream = fs.createWriteStream ('test.jpg');
response.pipe (???). pipe (writeableStream);
I tried many options with the documentation, but nothing came of it.
Is it possible with this library?
Reactions are currently unavailable