Permalink
Browse files

Do not create a 'quality' prop if there isn't already one

  • Loading branch information...
1 parent 688f126 commit cccaf3de2ce6d2b3f4f397c2c34f5c7f4c2e74d4 @thiagoarrais thiagoarrais committed May 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 imagemagick.js
View
2 imagemagick.js
@@ -132,7 +132,7 @@ exports.identify = function(pathOrArgs, callback) {
result.width = parseInt(geometry[0]);
result.height = parseInt(geometry[1]);
result.depth = parseInt(result.depth);
- result.quality = parseInt(result.quality) / 100;
+ if (result.quality !== undefined) result.quality = parseInt(result.quality) / 100;
}
}
callback(err, result);

0 comments on commit cccaf3d

Please sign in to comment.