Last active
October 26, 2020 14:12
-
-
Save indreklasn/39938f9f553738ac08340d74837a539d 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 }) | |
.flip() | |
.toFormat("png") | |
.png({ quality: 100 }) | |
.toFile("flip-output.png"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment