fix: honor reference image resize opt-out in server requests (#2011)

This commit is contained in:
Aziz Muminov
2026-09-21 23:39:24 +08:00
committed by GitHub
parent 2726dd35c2
commit 78557f88d9
2 changed files with 12 additions and 3 deletions
+6 -1
View File
@@ -2223,7 +2223,12 @@ bool SDGenerationParams::from_json_str(
LOG_ERROR("invalid end_image");
return false;
}
if (!parse_image_array_json_field(j, "ref_images", 3, width, height, ref_images)) {
if (!parse_image_array_json_field(j,
"ref_images",
3,
auto_resize_ref_image ? width : 0,
auto_resize_ref_image ? height : 0,
ref_images)) {
LOG_ERROR("invalid ref_images");
return false;
}