Skip to content

Instantly share code, notes, and snippets.

@jigewxy
Created February 13, 2018 16:34
Show Gist options
  • Save jigewxy/69f7c718a391826f2f3af2130e4c6549 to your computer and use it in GitHub Desktop.
Save jigewxy/69f7c718a391826f2f3af2130e4c6549 to your computer and use it in GitHub Desktop.
node-thumbnail
const thumb = require('node-thumbnail').thumb;
thumb({
source: './img', //can be directory
destination: './pics', // can be directory
concurrency:4,
width: 50
}, (files, err, stdout, stderr)=> console.log('all done!'));
/**
if destination already has the same filename as source, it will skip the processing.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment