fix(api): use correct params for default outpainting borders (#345)
This commit is contained in:
parent
b85a8aa868
commit
c7aea34b28
|
@ -153,30 +153,30 @@ def border_from_request() -> Border:
|
||||||
left = get_and_clamp_int(
|
left = get_and_clamp_int(
|
||||||
request.args,
|
request.args,
|
||||||
"left",
|
"left",
|
||||||
get_config_value("width"),
|
get_config_value("left"),
|
||||||
get_config_value("width", "max"),
|
get_config_value("left", "max"),
|
||||||
get_config_value("width", "min"),
|
get_config_value("left", "min"),
|
||||||
)
|
)
|
||||||
right = get_and_clamp_int(
|
right = get_and_clamp_int(
|
||||||
request.args,
|
request.args,
|
||||||
"right",
|
"right",
|
||||||
get_config_value("width"),
|
get_config_value("right"),
|
||||||
get_config_value("width", "max"),
|
get_config_value("right", "max"),
|
||||||
get_config_value("width", "min"),
|
get_config_value("right", "min"),
|
||||||
)
|
)
|
||||||
top = get_and_clamp_int(
|
top = get_and_clamp_int(
|
||||||
request.args,
|
request.args,
|
||||||
"top",
|
"top",
|
||||||
get_config_value("width"),
|
get_config_value("top"),
|
||||||
get_config_value("height", "max"),
|
get_config_value("top", "max"),
|
||||||
get_config_value("height", "min"),
|
get_config_value("top", "min"),
|
||||||
)
|
)
|
||||||
bottom = get_and_clamp_int(
|
bottom = get_and_clamp_int(
|
||||||
request.args,
|
request.args,
|
||||||
"bottom",
|
"bottom",
|
||||||
get_config_value("width"),
|
get_config_value("bottom"),
|
||||||
get_config_value("height", "max"),
|
get_config_value("bottom", "max"),
|
||||||
get_config_value("height", "min"),
|
get_config_value("bottom", "min"),
|
||||||
)
|
)
|
||||||
|
|
||||||
return Border(left, right, top, bottom)
|
return Border(left, right, top, bottom)
|
||||||
|
|
Loading…
Reference in New Issue