mirror of
https://github.com/danbulant/pngjs
synced 2026-06-15 12:31:20 +00:00
Fix #21 - interlaced png's that were not square failed because of typo
This commit is contained in:
parent
880d1b0814
commit
ba44715818
3 changed files with 2 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ exports.getImagePasses = function(width, height) {
|
|||
var xLeftOver = width % 8;
|
||||
var yLeftOver = height % 8;
|
||||
var xRepeats = (width - xLeftOver) / 8;
|
||||
var yRepeats = (width - yLeftOver) / 8;
|
||||
var yRepeats = (height - yLeftOver) / 8;
|
||||
for (var i = 0; i < imagePasses.length; i++) {
|
||||
var pass = imagePasses[i];
|
||||
var passWidth = xRepeats * pass.x.length;
|
||||
|
|
|
|||
BIN
test/in/gh-21.png
Normal file
BIN
test/in/gh-21.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
|
|
@ -198,6 +198,7 @@
|
|||
<p class="testline"><img class="inimage" src="in/g03n3p04.png"> <img class="asyncimage" src="out/g03n3p04.png"> <img class="syncimage" src="outsync/g03n3p04.png"> </p>
|
||||
<p class="testline"><img class="inimage" src="in/g03n2c08.png"> <img class="asyncimage" src="out/g03n2c08.png"> <img class="syncimage" src="outsync/g03n2c08.png"> </p>
|
||||
<p class="testline"><img class="inimage" src="in/g03n0g16.png"> <img class="asyncimage" src="out/g03n0g16.png"> <img class="syncimage" src="outsync/g03n0g16.png"> </p>
|
||||
<p class="testline"><img class="inimage" src="in/gh-21.png"> <img class="asyncimage" src="out/gh-21.png"> <img class="syncimage" src="outsync/gh-21.png"> </p>
|
||||
<script>
|
||||
if (!Function.prototype.bind) {
|
||||
Function.prototype.bind = function(oThis) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue