Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #250 from akreitals/app-path
Browse files Browse the repository at this point in the history
Added option to set ImageMagick application path explicitly
  • Loading branch information
jonathanong committed Feb 8, 2014
2 parents 7b09f1e + 17dd776 commit d6915c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/command.js
Expand Up @@ -179,8 +179,9 @@ module.exports = function (proto) {
*/

proto._spawn = function _spawn (args, bufferOutput, callback) {
var appPath = this._options.appPath || '';
var bin = this._options.imageMagick
? args.shift()
? appPath + args.shift()
: 'gm'

var proc = spawn(bin, args)
Expand Down

0 comments on commit d6915c5

Please sign in to comment.