From 3b66ebcb1b7933ff2178eaed323b5383a1ecec0d Mon Sep 17 00:00:00 2001 From: Kevin Gravier Date: Wed, 10 Jan 2018 14:29:58 -0500 Subject: [PATCH] Allow a user to pass either height or width to the thumbnail function --- lib/commands/thumbnail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/thumbnail.js b/lib/commands/thumbnail.js index 8342900..8630f84 100644 --- a/lib/commands/thumbnail.js +++ b/lib/commands/thumbnail.js @@ -31,7 +31,7 @@ exports.thumbnail = function thumbnail(options) { throw new Error(utils.errorMessages['path']); } - if (options.width === undefined) { + if (options.width === undefined && options.height === undefined) { throw new Error(utils.errorMessages['dim']); }