more resolutions lite

This commit is contained in:
Concedo 2026-05-25 15:23:21 +08:00
parent 093f046fd3
commit b4a8b4a0cf

View file

@ -12,7 +12,7 @@ Current version indicated by LITEVER below.
-->
<head>
<script id="init-config">
const LITEVER = 332;
const LITEVER = 333;
const urlParams = new URLSearchParams(window.location.search);
var localflag = urlParams.get('local'); //this will be replaced automatically in embedded kcpp
const STORAGE_PREFIX = (localflag?"e_":"")+"kaihordewebui_";
@ -4444,7 +4444,7 @@ Current version indicated by LITEVER below.
img_steps: 20,
img_sampler: "Euler",
img_scheduler: "default",
img_aspect:0, //0=square,1=portrait,2=landscape,3=bigsquare,4=portrait_long,5=landscape_long
img_aspect:0, //0=square,1=portrait,2=landscape,3=bigsquare,4=portrait_long,5=landscape_long, 6=hugesquare, 7=768x1024, 8=1024x768
save_images: true,
save_remote_images: false,
prompt_for_savename: false,
@ -22007,6 +22007,16 @@ Current version indicated by LITEVER below.
iwidth = 1024;
iheight = 1024;
}
else if(localsettings.img_aspect==7)
{
iwidth = 768;
iheight = 1024;
}
else if(localsettings.img_aspect==8)
{
iwidth = 1024;
iheight = 768;
}
let genimg_payload = {
"prompt": (sentence + negprompt),
@ -30469,6 +30479,8 @@ Current version indicated by LITEVER below.
<option value="3">768 x 768</option>
<option value="4">512 x 1024</option>
<option value="5">1024 x 512</option>
<option value="7">768 x 1024</option>
<option value="8">1024 x 768</option>
<option value="6">1024 x 1024</option>
</select>
</div>