Skip to content

Commit

Permalink
Don't throw on inputs larger than 10 MB (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
knokmki612 authored and sindresorhus committed Dec 25, 2018
1 parent be923c2 commit 6b0e2a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ module.exports = (options = {}) => input => {

const cp = execa(pngquant, args, {
encoding: null,
maxBuffer: Infinity,
input
});

Expand Down

0 comments on commit 6b0e2a6

Please sign in to comment.