From e47ca8e402d2e4c6774eea7f1c037dbbe8ff5196 Mon Sep 17 00:00:00 2001 From: Aaron Heckmann Date: Mon, 19 Sep 2022 08:11:55 -0700 Subject: [PATCH] debug compare --- lib/compare.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/compare.js b/lib/compare.js index f85b288..7ba3397 100644 --- a/lib/compare.js +++ b/lib/compare.js @@ -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. @@ -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 = '';