d8ahazard / sd_smartprocess

Smart Pre-processing extension for Stable Diffusion
191 stars 19 forks source link

Feature request: Resize image by pixel amount #45

Open madrooky opened 10 months ago

madrooky commented 10 months ago

It is actually not an overly complicated thing, but i could not find any tool that is capable to process images in a batch like that. For training, the aspect ratio is not really important when it comes to performance, the amount of pixels is. And i have lots of images that have been cropped and the resolution is all over the place. Also the aspect ratio varies. But i would like to scale all images in a simple way to a max pixel amount by keeping the aspect ratio. Doing this manually is a pain in the butt and takes ages for a large data set.

Also there is no actual downscaling in the processing. I assumed the "Output size" would do exactly what i just asked, but it does not actually affect my images that are much larger. Maybe it works with upscaling, but i don't need upscaling i only need downscaling which is not possible as it seems.