Created
January 10, 2020 03:10
-
-
Save xeecos/424791cd487d5e6268e2f92a614d7c02 to your computer and use it in GitHub Desktop.
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 {execFile} = require('child_process'); | |
const gifsicle = require('gifsicle'); | |
execFile(gifsicle, ['--resize-fit-width', '200','-o', 'output.gif', 'input.gif'], err => { | |
console.log('Image minified!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.lcdf.org/gifsicle/man.html