diff --git a/src/index.html b/src/index.html
index 04655f2..78dc0bd 100644
--- a/src/index.html
+++ b/src/index.html
@@ -2831,6 +2831,11 @@
+
@@ -15495,9 +15500,16 @@
const restoreBtn = (text) => { if (btn) { btn.disabled = false; if (text != null) btn.textContent = text; } };
const prevText = btn?.textContent;
if (btn) { btn.disabled = true; btn.textContent = 'Rendering…'; }
+ // Resolution preset from the dropdown next to the button.
+ const presetSel = document.getElementById('exportJpegQuality');
+ const preset = presetSel?.value || 'standard';
+ const opts =
+ preset === 'low' ? { dpi: 96, quality: 0.85 } :
+ preset === 'print' ? { dpi: 300, quality: 0.95 } :
+ { dpi: 150, quality: 0.92 };
let result;
try {
- result = await exportArtboardAsJpegBlob({ dpi: 150, quality: 0.92 });
+ result = await exportArtboardAsJpegBlob(opts);
} catch (e) {
toastError && toastError('JPEG render failed — falling back to PDF flow.');
restoreBtn(prevText);