Skip to content

Instantly share code, notes, and snippets.

View korzhyk's full-sized avatar
💥

Andrii Korzh korzhyk

💥
View GitHub Profile
@korzhyk
korzhyk / crop.js
Created February 1, 2014 19:48 — forked from arian/crop.js
var spawn = require('child_process').spawn;
var Stream = require('stream');
/**
* crops and resizes images to our desired size
* @param {Stream} streamIn in stream containing the raw image
* @return {Stream}
*/
exports.cropImage = function(streamIn){