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

Commit

Permalink
Bugfix for ScaleUp
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelerz committed May 18, 2015
1 parent 1b08b5f commit 83dd741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/png/utils/scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ scale.scaleUp = function (input, output, spreadFn, isColor, hasAlphaChannel, isI

spreadFn(value, bytes);

while (bytes.length > bytesNeeded) {
while (bytes.length >= bytesNeeded) {
this[method](output, bytes.splice(0, bytesNeeded));
}
}
Expand Down

0 comments on commit 83dd741

Please sign in to comment.