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.
24 lines
424 B
24 lines
424 B
|
|
var assert = require('assert')
|
|
|
|
module.exports = function (gm, dir, finish, GM) {
|
|
|
|
if (gm._options.imageMagick)
|
|
return finish();
|
|
|
|
var m = gm
|
|
.magnify();
|
|
|
|
var args = m.args();
|
|
assert.equal('convert', args[0]);
|
|
assert.equal('-magnify', args[1]);
|
|
assert.equal(4, args.length);
|
|
|
|
if (!GM.integration)
|
|
return finish();
|
|
|
|
m
|
|
.write(dir + '/magnify.png', function magnify (err) {
|
|
finish(err);
|
|
});
|
|
}
|
|
|