Initial commit.

This commit is contained in:
Jonathan Cremin 2015-07-09 23:01:43 +01:00
commit b48a4e92e1
169 changed files with 7538 additions and 0 deletions

10
lib/resize.js Normal file
View file

@ -0,0 +1,10 @@
import debugname from 'debug';
const debug = debugname('hostr-api:resize');
import gm from 'gm';
export default function(input, size) {
debug('Resizing');
const image = gm(input);
return image.resize(size.width, size.height, '>').stream();
}