Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix wizardry not processing if a library isn't specified.

  • Loading branch information...
commit 912974423f4c52483ed5e23ef2d1e4833604af27 1 parent a149e3c
@remixz remixz authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/wizardry.js
View
8 lib/wizardry.js
@@ -38,7 +38,7 @@ var env = Object.create(null);
module.exports = function (images, task, callback) {
var args = [];
- var command = 'gm';
+ var command;
var cpu = task.processes ? task.processes : require('os').cpus().length;
@@ -51,7 +51,11 @@ module.exports = function (images, task, callback) {
} else if (task.library === 'imagemagick') {
command = 'mogrify'
} else {
- return callback('Error: Unknown library!');
+ if (task.library) {
+ return callback('Error: Unknown library!');
+ } else {
+ command = 'gm';
+ }
};
if (command === 'gm') { args.push('mogrify'); };

0 comments on commit 9129744

Please sign in to comment.
Something went wrong with that request. Please try again.