Skip to content

Commit

Permalink
Allow a user to pass either height or width to the thumbnail function
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkmg committed Jan 10, 2018
1 parent 49ac7b9 commit 3b66ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/thumbnail.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

Expand Down

0 comments on commit 3b66ebc

Please # to comment.