From 9c88f53cd0a05fd50e0f1ce965480a5ae3005bcb Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Wed, 7 Jan 2026 19:29:29 -0500 Subject: [PATCH] Reset DCT options to Color+JPEG when switching from LSB --- frontends/web/templates/encode.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontends/web/templates/encode.html b/frontends/web/templates/encode.html index d7985bf..c251238 100644 --- a/frontends/web/templates/encode.html +++ b/frontends/web/templates/encode.html @@ -691,18 +691,18 @@ const pngFormatInput = document.getElementById('pngFormat'); function updateOutputOptions(mode) { const isLsb = mode === 'lsb'; - // LSB only supports Color + PNG if (isLsb) { - // Force Color and PNG selection + // LSB only supports Color + PNG colorModeInput.checked = true; pngFormatInput.checked = true; - // Disable Gray and JPEG grayModeInput.disabled = true; jpegFormatInput.disabled = true; grayModeLabel?.classList.add('disabled', 'text-muted'); jpegFormatLabel?.classList.add('disabled', 'text-muted'); } else { - // DCT: enable all options + // DCT: reset to defaults (Color + JPEG) and enable all + colorModeInput.checked = true; + jpegFormatInput.checked = true; grayModeInput.disabled = false; jpegFormatInput.disabled = false; grayModeLabel?.classList.remove('disabled', 'text-muted');