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.
19 lines
413 B
19 lines
413 B
|
|
var assert = require('assert')
|
|
var fs = require('fs');
|
|
|
|
module.exports = function (_, dir, finish, gm) {
|
|
var m = gm(fs.createReadStream(dir + '/original.gif'), "original.gif[0]")
|
|
|
|
var args = m.args();
|
|
assert.equal('convert', args[0]);
|
|
assert.equal('-[0]', args[1]);
|
|
|
|
if (!gm.integration)
|
|
return finish();
|
|
|
|
m
|
|
.write(dir + '/gifFrameStream.jpg', function gifFrame (err){
|
|
finish(err);
|
|
});
|
|
}
|
|
|