From f1af61df5025ebee6ca8e9cd130c20a89962c685 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 4 Jun 2026 10:35:19 -0500 Subject: [PATCH] Clarify comment --- src/state/gallery.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/state/gallery.ts b/src/state/gallery.ts index bc8beb7360..e6c5b50d36 100644 --- a/src/state/gallery.ts +++ b/src/state/gallery.ts @@ -239,7 +239,8 @@ export async function compressImage( minQualityPercentage = 0 maxQualityPercentage = 101 attempts++ - // 4000px → 3200px → 2560px → 2048px → ~1638px + // max.width → 0.8× → 0.64× → 0.512× → ~0.41× + // e.g. 4000px → 3200px → 2560px → 2048px → ~1638px currentDimension = Math.floor(currentDimension * 0.8) continue }