diff --git a/typescripts/sd_tab/sd_tab.tsx b/typescripts/sd_tab/sd_tab.tsx index a87ca69..7e00a8c 100644 --- a/typescripts/sd_tab/sd_tab.tsx +++ b/typescripts/sd_tab/sd_tab.tsx @@ -752,17 +752,17 @@ class SDTab extends React.Component<{}> { show-value="false" id="slWidth" min="1" - max="32" - value={store.data.width / 64} + max="256" + value={store.data.width / 8} // data-old_value="512" onInput={(evt: any) => { - onWidthSliderInput(evt.target.value * 64) + onWidthSliderInput(evt.target.value * 8) }} onChange={(evt: any) => { store.data.width widthSliderOnChangeEventHandler( - evt.target.value * 64, - 64, + evt.target.value * 8, + 8, 2048 ) helper_store.data.previous_width = @@ -797,15 +797,15 @@ class SDTab extends React.Component<{}> { show-value="false" id="slHeight" min="1" - max="32" - value={store.data.height / 64} + max="256" + value={store.data.height / 8} onInput={async (evt: any) => { - onHeightSliderInput(evt.target.value * 64) + onHeightSliderInput(evt.target.value * 8) }} onChange={(evt: any) => { heightSliderOnChangeEventHandler( - evt.target.value * 64, - 64, + evt.target.value * 8, + 8, 2048 ) }} @@ -1283,12 +1283,12 @@ class SDTab extends React.Component<{}> { show-value="false" id="hrWidth" min="1" - max="32" - value={store.data.hr_resize_x / 64} + max="256" + value={store.data.hr_resize_x / 8} style={{ display: 'none' }} onInput={(evt: any) => { store.data.hr_resize_x = Math.floor( - evt.target.value * 64 + evt.target.value * 8 ) }} > @@ -1308,12 +1308,12 @@ class SDTab extends React.Component<{}> { show-value="false" id="hrHeight" min="1" - max="32" - value={store.data.hr_resize_y / 64} + max="256" + value={store.data.hr_resize_y / 8} style={{ display: 'none' }} onInput={(evt: any) => { store.data.hr_resize_y = Math.floor( - evt.target.value * 64 + evt.target.value * 8 ) }} > diff --git a/utility/session.js b/utility/session.js index 9f91053..9c40e7c 100644 --- a/utility/session.js +++ b/utility/session.js @@ -238,8 +238,8 @@ async function getSettings(session_data) { const original_width = sd_tab_store.data.width const original_height = sd_tab_store.data.height - const width = general.nearestMultiple(original_width, 64) - const height = general.nearestMultiple(original_height, 64) + const width = general.nearestMultiple(original_width, 8) + const height = general.nearestMultiple(original_height, 8) //const hScale = html_manip.getSliderSdValue_Old('hrScale',1)