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.
21 lines
393 B
21 lines
393 B
|
|
var assert =require('assert')
|
|
|
|
module.exports = function (gm, dir, finish, GM) {
|
|
|
|
var m = gm
|
|
.region(130, 170, 307, 00);
|
|
|
|
var args = m.args();
|
|
assert.equal('convert', args[0]);
|
|
assert.equal('-region', args[2]);
|
|
assert.equal('130x170+307+0', args[3]);
|
|
|
|
if (!GM.integration)
|
|
return finish();
|
|
|
|
m
|
|
.write(dir + '/region.png', function region (err) {
|
|
finish(err);
|
|
});
|
|
}
|
|
|