Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Add interlace-method option
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Erz committed Sep 22, 2015
1 parent cb8db42 commit 3a8634d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/png/encoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ Encoder.prototype._optimize = function (image, width, height, options) {
options.header.colorType = 6; // True-color
options.header.compression = 0; // Deflate
options.header.filter = 0; // Default
options.header.interlace = 0; // Default - non-streaming

options.header.interlace = options.interlace || 0; // Default - non-streaming
};

module.exports = Encoder;

0 comments on commit 3a8634d

Please sign in to comment.