Skip to content

Commit

Permalink
interlace option
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyraul committed Jul 17, 2019
1 parent d0814f8 commit 1faab7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = options => async buffer => {
bitDepthReduction: true,
colorTypeReduction: true,
paletteReduction: true,
interlaced: false,
...options
};

Expand All @@ -35,6 +36,10 @@ module.exports = options => async buffer => {
arguments_.push('-nb');
}

if (options.interlaced) {
args.push('-i', '1');
}

if (!options.colorTypeReduction) {
arguments_.push('-nc');
}
Expand Down

0 comments on commit 1faab7d

Please sign in to comment.