From ac956b91065dcff9d9444712d4ab35f6800f887a Mon Sep 17 00:00:00 2001 From: Eetu Rantanen Date: Tue, 27 Jan 2026 16:15:45 +0200 Subject: [PATCH] scale to devicePixelRatio --- javascript/commons/ExportImage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/commons/ExportImage.js b/javascript/commons/ExportImage.js index 406fe2ae427..face7d00216 100644 --- a/javascript/commons/ExportImage.js +++ b/javascript/commons/ExportImage.js @@ -437,7 +437,7 @@ class ExportService { element.style.background = backgroundColor; const capturedCanvas = await html2canvas( element, { - scale: 1, + scale: window.devicePixelRatio || 1, windowWidth: document.documentElement.scrollWidth, windowHeight: document.documentElement.scrollHeight, scrollX: 0,