Created
February 13, 2018 16:34
-
-
Save jigewxy/69f7c718a391826f2f3af2130e4c6549 to your computer and use it in GitHub Desktop.
node-thumbnail
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 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