Last active
October 25, 2020 14:36
-
-
Save indreklasn/52d1b5b2910ff9e6b69f46a6de223255 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sharp = require("sharp"); | |
sharp("example-image.jpg") | |
.resize({ width: 500, height: 450 }) | |
.toFormat("png") | |
.png({ quality: 100 }) | |
.toFile("output.png"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment