diff --git a/src/ext/lib/aard/Aard.ts b/src/ext/lib/aard/Aard.ts index fe5bf9d..9d3c037 100644 --- a/src/ext/lib/aard/Aard.ts +++ b/src/ext/lib/aard/Aard.ts @@ -754,6 +754,7 @@ export class Aard { const segmentPixels = width * edgePosition; const edgeSegmentSize = segmentPixels * 4; + // check the top { // no use in doing guardline tests if guardline hasn't been measured yet, or if @@ -764,6 +765,7 @@ export class Aard { const secondSegment = rowEnd - edgeSegmentSize; let i = rowStart; + while (i < firstSegment) { if ( imageData[i] > this.testResults.blackThreshold @@ -1836,7 +1838,6 @@ export class Aard { const compensatedWidth = fileAr === canvasAr ? this.canvasStore.main.width : this.canvasStore.main.width * fileAr; - // console.log(` // ———— ASPECT RATIO CALCULATION: —————