Permalink
Browse files

Accidently reversed x and y offsets in crop.

  • Loading branch information...
1 parent a51a0b4 commit b7b09c064b1c3e62ea42c6628cc1b8163569ff3f @marcweil marcweil committed Nov 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 imagemagick.js
View
@@ -325,7 +325,7 @@ exports.crop = function (options, callback) {
args = args.concat(['-resize', resizeTo]);
} else {
// Since this is an arbitrary crop rectange, use -crop instead of -resize.
- args = args.concat(['-crop', ''+t.opt.width + 'x' + t.opt.height + (t.opt.top ? t.opt.top : '+0') + (t.opt.left ? t.opt.left : '+0')]);
+ args = args.concat(['-crop', ''+t.opt.width + 'x' + t.opt.height + (t.opt.left ? t.opt.left : '+0') + (t.opt.top ? t.opt.top : '+0')]);
}
args = args.concat([

0 comments on commit b7b09c0

Please sign in to comment.