Version 2.0 Update: ZImageResolutionScaler Added!
Version 2 introduces the ZImageResolutionScaler — an intelligent auto-resize node.
While the original Picker is great for starting from scratch (generating empty latents), the Scaler is designed for when you have an input image and need to conform it to optimal model dimensions safely.
Key Features of ZImageResolutionScaler:
Smart Auto-Selection: Stop scrolling through dropdowns! The node automatically analyzes your input image's aspect ratio and finds the closest match from the Z-Image/Flux resolution buckets.
Resize Modes:
pad: Scales the image to fit inside the target resolution while preserving the original aspect ratio, filling the empty space with a chosen color (ideal for inpainting).
crop: Scales the image to completely cover the target resolution, cropping the excess edges.
Set the limit to 1024, 1280, or 1536. The node will strictly auto-select resolutions within this tie.
Mask Support: Pass a mask along with your image, and it will be scaled and padded/cropped simultaneously. Note: In pad mode, the padded areas on the mask are always black (transparent), ensuring models correctly ignore the added background.
Simple Color Picker: Choose the padding color from a simple dropdown (Black, White, Gray, Red, Green, Blue).
Info Output: Outputs a string showing exactly which resolution it auto-picked (e.g., Auto-picked: 1280x720 (16:9) (Limit: 1024)), so you are never left guessing what the node did.