Skip to content

Instantly share code, notes, and snippets.

@zoetrope69
Last active July 21, 2017 11:18
Show Gist options
  • Save zoetrope69/b6a32c48efa3a6f5e26738e7c1339f47 to your computer and use it in GitHub Desktop.
Save zoetrope69/b6a32c48efa3a6f5e26738e7c1339f47 to your computer and use it in GitHub Desktop.
GM Example
const gm = require('gm');
gm('/path/to/inputFile.png')
.monochrome()
.write('/path/to/outputFile.png', () => {
// Image created
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment