Permalink
Browse files

Add interlace-method option

  • Loading branch information...
marcelerz committed Sep 22, 2015
1 parent cb8db42 commit 3a8634daa8865c2096485a441e9c24fba0ffad91
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/png/encoder.js
View
@@ -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.