Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Add a 'resize_by' param to '/sdapi/v1/img2img' API endpoint #15758

Open
1 task done
altoiddealer opened this issue May 11, 2024 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@altoiddealer
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

In the UI > Img2Img Tab, there is a nifty way to set both Width and Height values simultaneously via the Resize by tab.

Screenshot 2024-05-11 094539

Currently, there is no such parameter in the /sdapi/v1/img2img API endpoint.

When using the API, the Width and Height values must be explicitly specified.

Current empty .json for reference:

img2img_input.json

As it stands, users are required to determine the Width and Height of their input image, and code their own calculations to yield the desired Width and Height.


Please add a resize_by parameter to /sdapi/v1/img2img


Proposed workflow

  1. Use the '/sdapi/v1/img2img' API endpoint
  2. Try dynamically upscaling images
  3. It's not easy because there is no resize_by parameter

Additional information

No response

@altoiddealer altoiddealer added the enhancement New feature or request label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant