Skip to content

Commit

Permalink
debug compare
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Sep 21, 2022
1 parent d8ff6d7 commit e47ca8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/compare.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// compare

var spawn = require('cross-spawn');
var debug = require('debug')('gm');
var utils = require('./utils');

/**
* Compare two images uses graphicsmagicks `compare` command.
Expand Down Expand Up @@ -91,6 +93,9 @@ module.exports = exports = function (proto) {
}
}

var cmd = bin + ' ' + args.map(utils.escape).join(' ')
debug(cmd);

var proc = spawn(bin, args);
var stdout = '';
var stderr = '';
Expand Down

0 comments on commit e47ca8e

Please sign in to comment.