Replies: 1 comment
-
|
You can set the original image as both a reference and the init image with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all, I have a question about automatically preserving aspect ratios when editing images, such as with qwen image edit.
Right now the width/height of the output image is controlled manually, and if you don't specify these parameters sdcpp generates a 512x512 image regardless of what the input image is. If you want to preserve the input aspect ratio (for example because you are just editing part of the image), then this is not very practical.
I wrote a short python wrapper on top of sdcpp that reads the input and output resolutions, and automatically selects the output resolutions to preserve the aspect ratio. For example --res 512 results in the image having the output resolution that preserves the aspect ratio and has the same pixels as 512x512 image. The height and width of the output image is automatically selected and I don't need to worry about that.
Is there a better or more elegant way to do this with sdcpp?
Beta Was this translation helpful? Give feedback.
All reactions