Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit cccaf3de2ce6d2b3f4f397c2c34f5c7f4c2e74d4 1 parent 688f126
@thiagoarrais thiagoarrais authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.