From 276a51b8c3baac5ed94f34aa1a4a6ee52c2c55a8 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Tue, 31 Dec 2024 03:15:10 +0100 Subject: [PATCH] WIP on master --- src/ext/lib/aard/Aard.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: —————