Skip to content

Commit

Permalink
Do not create a 'quality' prop if there isn't already one
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoarrais committed May 7, 2011
1 parent 688f126 commit cccaf3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imagemagick.js
Expand Up @@ -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);
Expand Down

0 comments on commit cccaf3d

Please sign in to comment.