From 6dfe945958ee74e269335a1fb1015996659d55f8 Mon Sep 17 00:00:00 2001 From: leejet Date: Tue, 31 Mar 2026 23:55:49 +0800 Subject: [PATCH] fix: use resolved image size in embedded metadata (#1382) --- examples/common/common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common/common.hpp b/examples/common/common.hpp index bd6d3b1..daa1655 100644 --- a/examples/common/common.hpp +++ b/examples/common/common.hpp @@ -2128,7 +2128,7 @@ std::string get_image_params(const SDContextParams& ctx_params, const SDGenerati parameter_string += "Guidance: " + std::to_string(gen_params.sample_params.guidance.distilled_guidance) + ", "; parameter_string += "Eta: " + std::to_string(gen_params.sample_params.eta) + ", "; parameter_string += "Seed: " + std::to_string(seed) + ", "; - parameter_string += "Size: " + std::to_string(gen_params.width) + "x" + std::to_string(gen_params.height) + ", "; + parameter_string += "Size: " + std::to_string(gen_params.get_resolved_width()) + "x" + std::to_string(gen_params.get_resolved_height()) + ", "; parameter_string += "Model: " + sd_basename(ctx_params.model_path) + ", "; parameter_string += "RNG: " + std::string(sd_rng_type_name(ctx_params.rng_type)) + ", "; if (ctx_params.sampler_rng_type != RNG_TYPE_COUNT) {