VAE Simple Resize instead of cropping
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 153
Description
Currently ComfyUI crops out of aspect images, couldn't we just resize width/height to nearest multiple of 8? It would be awesome to have a mode, to either crop or resize.
In a artistic environment it doesn't seem appropriate to be altering anyone's images without it being an explicit process by the user to begin with. If it is to crop, it probably should do it by cropping into the center of the image, too, not from 0,0
I can diffuse arbitrary sized images in Diffusers so long as they're multiples of 8, and that allows me to do compositing by simply resizing back to source size, but in ComfyUI I can't do that because it badly crops images (see below)

My node is already outputting a image that is resized to a multiple of 64, the image is 320x512 which is then cropped and resized to 256x448, which doesn't seem necessary.
Contributor guide
Assessment
This issue has not been assessed yet.