Permalink
Browse files

Fix argument substitution that prevented the verbose identify from wo…

…rking in this branch
  • Loading branch information...
1 parent 5f7dd78 commit c65a1157d83a52cb6e2d1076b004075ae2cd4aba @thiagoarrais thiagoarrais committed May 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 imagemagick.js
View
@@ -143,7 +143,7 @@ exports.identify = function(pathOrArgs, callback) {
if (!pathOrArgs.data)
throw new Error('first argument is missing the "data" member');
} else if (typeof pathOrArgs === 'function') {
- args[0] = '-';
+ args[args.length-1] = '-';
callback = pathOrArgs;
}
var proc = exec2(exports.identify.path, args, {timeout:120000}, function(err, stdout, stderr) {

0 comments on commit c65a115

Please sign in to comment.