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.
22 lines
505 B
22 lines
505 B
var assert = require('assert')
|
|
|
|
module.exports = function (gm, dir, finish, GM, im) {
|
|
|
|
// GraphicsMagick 1.3.12 using on Travis server does not support "repage+" (>=1.3.16 is needed)
|
|
if (require('os').platform() === 'linux' && !im) return finish()
|
|
|
|
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);
|
|
});
|
|
}
|
|
|