mirror of https://gitgud.io/fatchan/gm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
362 B
15 lines
362 B
|
|
var assert = require('assert')
|
|
var fs = require('fs');
|
|
|
|
module.exports = function (_, dir, finish, gm) {
|
|
if (!gm.integration)
|
|
return finish();
|
|
|
|
gm(fs.createReadStream(dir + '/original.jpg'))
|
|
.size({bufferStream: true}, function (err, size) {
|
|
this.write(dir + '/streamInGetter.png', function streamInGetter (err){
|
|
finish(err);
|
|
});
|
|
});
|
|
} |