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
465 B
23 lines
465 B
|
|
var assert =require('assert')
|
|
|
|
module.exports = function (gm, dir, finish, GM) {
|
|
|
|
var m = GM('temp.jpg').negative(true);
|
|
var args = m.args();
|
|
assert.equal('convert', args[0]);
|
|
assert.equal('+negate', args[2]);
|
|
|
|
m = gm.negative();
|
|
args = m.args();
|
|
assert.equal('convert', args[0]);
|
|
assert.equal('-negate', args[2]);
|
|
|
|
if (!GM.integration)
|
|
return finish();
|
|
|
|
m
|
|
.write(dir + '/negative.png', function negative (err) {
|
|
finish(err);
|
|
});
|
|
}
|
|
|