Skip to content

Instantly share code, notes, and snippets.

@xeecos
Created January 10, 2020 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeecos/424791cd487d5e6268e2f92a614d7c02 to your computer and use it in GitHub Desktop.
Save xeecos/424791cd487d5e6268e2f92a614d7c02 to your computer and use it in GitHub Desktop.
const {execFile} = require('child_process');
const gifsicle = require('gifsicle');
execFile(gifsicle, ['--resize-fit-width', '200','-o', 'output.gif', 'input.gif'], err => {
console.log('Image minified!');
});
@xeecos
Copy link
Author

xeecos commented Jan 10, 2020

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