Title here
Summary here
This guide shows how to convert a JPG image to PNG in Node.js with the Sharp package. If you would like to know more read the main article.
Install Sharp:
npm i sharpCreate a file (e.g. example.js) with the following contents:
import sharp from "sharp";
await sharp("image.jpg")
.png()
.toFile("image.png");Run with:
node example.js