Home
NOTE: I'm in the middle of upgrading the site. Most things are in place, but some things are missing and/or broken. This includes alt text for images. Please bear with me while I get things fixed.

Use Sharp To Process An Image

si

sharp("input.jpg")
  .resize({ width: 1024, height: 768 })
  .toFile("output.jpg")

More details here : https : //sharp.pixelplumbing.com/api - resize

Installation is done with :

Install with :

npm install sharp
# or
yarn add sharp
~ fin ~