Skip to content

Instantly share code, notes, and snippets.

View JonathanMH's full-sized avatar
🐙

Jonathan M. Hethey JonathanMH

🐙
View GitHub Profile
var fs = require('fs');
var im = require('imagemagick');
var async = require('async');
var widths = ['270', '590', '910', '1230'];
var source_dir = process.cwd()+'/source/';
var output_dir = process.cwd()+'/output/';
fs.readdir(source_dir, function(err, files){
if (err) throw err;