From bf05ffd541617f0788ddd0a3cb1e7da9033036ba Mon Sep 17 00:00:00 2001 From: Thijs Vermeir Date: Thu, 14 Feb 2013 10:25:33 +0100 Subject: [PATCH] remove verbose logging --- imagemagick.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/imagemagick.js b/imagemagick.js index b846c0c..2d67f8e 100644 --- a/imagemagick.js +++ b/imagemagick.js @@ -280,7 +280,7 @@ exports.crop = function (options, callback) { throw new TypeError("No srcPath or data defined"); if (!options.height && !options.width) throw new TypeError("No width or height defined"); - + if (options.srcPath){ var args = options.srcPath; } else { @@ -297,7 +297,6 @@ exports.crop = function (options, callback) { args = []; t.args.forEach(function (arg) { if (printNext === true){ - console.log("arg", arg); printNext = false; } // ignoreArg is set when resize flag was found @@ -305,12 +304,10 @@ exports.crop = function (options, callback) { args.push(arg); // found resize flag! ignore the next argument if (arg == '-resize'){ - console.log("resize arg"); ignoreArg = true; printNext = true; } if (arg === "-crop"){ - console.log("crop arg"); printNext = true; } // found the argument after the resize flag; ignore it and set crop options