Skip to content

Conversation

@wbruna
Copy link
Contributor

@wbruna wbruna commented Feb 8, 2026

When image dimensions are not provided, get them first from any input images, replicating the sd-cli approach. For plain txt2img, get the default dimensions from the server command-line.

This is on top of #1260 because it conflicts with it, and I tested both together; I can rebase it onto master if needed. And if the logic is sound, I'll extend it to the openai endpoints.

Edit: Now on top of another bugfix: #1268 . Also extended the logic to the openai api, but wasn't able to test it.

Should fix #1248 . Supersedes #1255 .

@wbruna wbruna force-pushed the sdapi_default_dimensions branch from f8a17ca to acbceca Compare February 10, 2026 02:54
@wbruna wbruna marked this pull request as ready for review February 10, 2026 03:06
@wbruna wbruna changed the title feat: use image and command-line dimensions by default on sdapi feat: use image and command-line dimensions by default on server Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] server mode, set resolution but not work

1 participant