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

Commit

Permalink
Bugfix for reversing filter - take into account the scanline padding …
Browse files Browse the repository at this point in the history
…for output buffer size
  • Loading branch information
marcelerz committed May 22, 2015
1 parent ae9f32e commit 4c0ef87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/png/processor/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Filter.prototype.reverse = function () {
};
output = {
previousLineOffset: null,
data: new Buffer(width * height * input.bytesPerPixel),
data: new Buffer(height * input.scanLineLength),
offset: 0
};

Expand Down

0 comments on commit 4c0ef87

Please sign in to comment.