Stable Diffusion Ratio Finder

Tool to help find optimal latent image sizes in order to achieve your end goal image size. Tries to target about 1 megapixel initial latent size, keeps dimensions constrained to multiples of 64, and tells you the upscale factor you need in order to get your final desired image size. The upscale factor can be used in a node like Ultimate SD Upscale for ComfyUI, or the Ultimate SD Upscale extension for Automatic1111. If it's important to have exact dimensions, you will have to crop the image afterward.