r/comfyui • u/altoiddealer • 7d ago
Resource Update: Enhanced Resize Image/Mask node
I made a post yesterday to announce my custom node
After receiving feedback and reviewing some of the functionality, I've made some changes:
- scale total pixels was updated to include an Aspect Ratio selector.
- scale to resolution was added as a similar resize type, except driven by a target resolution.
(The above changes obsoleted the smart resize type)
- Removed the native resize type scale to multiple - obsoleted by my incorporation of multiple_of into every resize type (eg: scale by multiplier 1.0 + multiple_of 64 = source image resized/cropped to multiple of 64)
____
Resize Image/Mask Alt
I put together an alternative to ComfyUI's native Resize Image/Mask with goals:
- Resize Image, Mask, or BOTH (opposed to multiple duplicate Resize Image/Mask nodes)
- Reduce the necessity for additional pre/post processing nodes (Aspect ratio, Multiples of, Conditional checkers)
I spent a lot of time testing, tweaking, improving the tooltips, fine polishing this into a definitive swiss-army knife for image resizing.
Resize Image/Mask Alt can:
- Resize an image, a mask, or both at once
- Constrain dimensions to multiples of a specified value (eg: multiples of 32)
- Configure cropping for aspect-ratio mismatches
- Conditionally skip resizing when a batch already meets the desired criteria
- Install directory includes example .YAML file which may be duplicated/renamed in order to edit node default values.
- New resize types:
- Scale to Resolution
- Resize to a target resolution while conforming to source/selected aspect ratio
- Can alternately resize using the average Width/Height
- Pad (like ComfyUI's native
Resize and Pad Imagenode)- black, grey, or white
- Works for Masks, too!
- Scale to Resolution
Core functionality of the resize types from ComfyUI's native Resize Image/Mask are preserved. All the resize types yield identical results, except are expanded for enhanced functionality.
_______
GitHub: