Skip to content

Instantly share code, notes, and snippets.

@anshulrgoyal
Created June 5, 2020 13:29
Show Gist options
  • Save anshulrgoyal/76d913d48e1ebc707ac1c386ecad7882 to your computer and use it in GitHub Desktop.
Save anshulrgoyal/76d913d48e1ebc707ac1c386ecad7882 to your computer and use it in GitHub Desktop.
Add Mlh Fellowship Frame To image
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()
@anshulrgoyal
Copy link
Author

Usage : node addFrame.js <File>

My image
user

Frame
frame

Result
test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment