Skip to content

Commit

Permalink
Round sizes to multiples of 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Joyard committed Jul 10, 2014
1 parent 0d7792a commit 35bcc69
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/recipes.js
Expand Up @@ -266,7 +266,7 @@ module.exports = function recipes(proto) {
height = height * Number(percentSize[1]) / 100;
}

next(null, pattern, width, height);
next(null, pattern, Math.round(width / 2) * 2, Math.round(height / 2) * 2);
});
} else {
next(null, pattern, -1, -1);
Expand Down Expand Up @@ -350,8 +350,6 @@ module.exports = function recipes(proto) {

// Remove size filters
self._currentOutput.sizeFilters.clear();

// Add stream labels
}

for (var i = 0; i < count; i++) {
Expand Down

0 comments on commit 35bcc69

Please sign in to comment.