Added support of "repage+" option #274

master
Denis Denisov 10 years ago
parent 38a73e0b41
commit 3fef98042a
  1. 1
      lib/args.js
  2. 19
      test/repagePlus.js

@ -458,6 +458,7 @@ module.exports = function (proto) {
// http://www.graphicsmagick.org/GraphicsMagick.html#details-repage
proto.repage = function repage (width, height, xoff, yoff, arg) {
if (arguments[0] === "+") return this.out("+repage");
return this.out("-repage", width+'x'+height+'+'+xoff+'+'+yoff+(arg||''));
}

@ -0,0 +1,19 @@
var assert = require('assert')
module.exports = function (gm, dir, finish, GM) {
var m = gm
.repage('+');
var args = m.args();
assert.equal('convert', args[0]);
assert.equal('+repage', args[2]);
if (!GM.integration)
return finish();
m
.write(dir + '/repage.png', function blur (err) {
finish(err);
});
}
Loading…
Cancel
Save