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

This commit is contained in:
Aziz Muminov authored and GitHub committed 2026-09-21 23:39:24 +08:00
1 parent 2726dd35c2
commit 78557f88d9
2 files changed
+12 -3

No files matched your search

+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;
}