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.
23 lines
466 B
23 lines
466 B
var assert = require('assert')
|
|
|
|
module.exports = function (gm, dir, finish, GM) {
|
|
|
|
var m = gm
|
|
.scale(200, 100)
|
|
.extent(300,300)
|
|
|
|
var args = m.args();
|
|
assert.equal('convert', args[0]);
|
|
assert.equal('-scale', args[2]);
|
|
assert.equal('200x100', args[3]);
|
|
assert.equal('-extent', args[4]);
|
|
assert.equal('300x300', args[5]);
|
|
|
|
if (!GM.integration)
|
|
return finish();
|
|
|
|
m
|
|
.write(dir + '/extent.png', function resize (err) {
|
|
finish(err);
|
|
});
|
|
}
|
|
|