From b8a634b6546382d97619da064c8e9b12fd4679fd Mon Sep 17 00:00:00 2001 From: jamz-uk <222520099+jamz-uk@users.noreply.github.com> Date: Thu, 21 Aug 2025 22:50:16 +0100 Subject: [PATCH] Update Auto-Image.js --- Auto-Image.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Auto-Image.js b/Auto-Image.js index 5a35b12..1147a96 100644 --- a/Auto-Image.js +++ b/Auto-Image.js @@ -4955,6 +4955,10 @@ heightSlider.value = Math.round(parseInt(widthSlider.value, 10) / aspectRatio); } _updateResizePreview(); + const curW = parseInt(widthSlider.value, 10); + const curH = parseInt(heightSlider.value, 10); + state.resizeSettings = { baseWidth: width, baseHeight: height, width: curW, height: curH }; + saveBotSettings(); }; const onHeightInput = () => { @@ -4962,6 +4966,10 @@ widthSlider.value = Math.round(parseInt(heightSlider.value, 10) * aspectRatio); } _updateResizePreview(); + const curW = parseInt(widthSlider.value, 10); + const curH = parseInt(heightSlider.value, 10); + state.resizeSettings = { baseWidth: width, baseHeight: height, width: curW, height: curH }; + saveBotSettings(); }; paintWhiteToggle.onchange = (e) => { @@ -5080,7 +5088,7 @@ state.totalPixels = totalValidPixels; state.paintedPixels = 0; - state.resizeSettings = { baseWidth: newWidth, baseHeight: newHeight, width: newWidth, height: newHeight }; + state.resizeSettings = { baseWidth: width, baseHeight: height, width: newWidth, height: newHeight }; saveBotSettings(); const finalImageBitmap = await createImageBitmap(tempCanvas);