Skip to content

Commit

Permalink
Merge branch 'parse-frame'
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanong committed Aug 18, 2013
2 parents 5eb9843 + 606f48f commit fd8c16d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/getters.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ module.exports = function (gm) {
args.push('-verbose');
}

args.push(self.sourceStream || self.sourceBuffer ? '-' : self.source);
args = args.concat(self.src());
return args;
}

Expand Down
17 changes: 17 additions & 0 deletions test/gifFrameIdentify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

var assert = require('assert')
var fs = require('fs');

module.exports = function (_, dir, finish, gm) {
var m = gm(dir + '/original.gif[0]')

if (!gm.integration)
return finish();

m.identify('%n', function (err, stdout) {
if (err) return finish(err);

assert.equal(parseInt(stdout.toString(), 10), 1);
finish();
})
}

0 comments on commit fd8c16d

Please sign in to comment.