Skip to content

Conver http response images with .webp to .jpg #1585

@taraa62

Description

@taraa62

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions