Fix #21 - interlaced png's that were not square failed because of typo

This commit is contained in:
Luke Page 2015-08-21 08:10:21 +01:00
parent 880d1b0814
commit ba44715818
3 changed files with 2 additions and 1 deletions

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View file

@ -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) {