Permalink
Browse files

avoid rotation for "r0"

  • Loading branch information...
1 parent 2391d6d commit 0412809c5cd3a55b02d8315a3de3b398a264a161 @kcivey kcivey committed Nov 15, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 server.js
View
@@ -123,7 +123,9 @@ function getConvertOptions(optionsString) {
options.push('-crop', params.c);
}
if (params.r) {
- options.push('-rotate', params.r);
+ if (+params.r) { // Don't bother with rotate if 0
+ options.push('-rotate', params.r);
+ }
}
if (params.w || params.h) {
options.push('-resize', params.w + 'x' + params.h);

0 comments on commit 0412809

Please sign in to comment.