Created
June 5, 2020 13:29
-
-
Save anshulrgoyal/76d913d48e1ebc707ac1c386ecad7882 to your computer and use it in GitHub Desktop.
Add Mlh Fellowship Frame To image
This file contains 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 { Steps, FromFile, LosslessPNG, FromURL } = require("@imazen/imageflow") | |
new Steps(new FromFile(process.argv[2])) | |
.watermark(new FromURL("https://res.cloudinary.com/unbaked/image/upload/v1591363414/frame_e2n8fi.png"), {}) | |
.encode(new FromFile("./with_frame.png"), new LosslessPNG()).execute() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage :
node addFrame.js <File>
My image
Frame
Result