ComfyUI Extension: ComfyUI-ResizeZeptaPayload
Resize a batch of trajectories or images
Custom Nodes (0)
README
ComfyUI-ResizeZeptaPayload
A custom node extension for ComfyUI that provides utilities for resizing images and trajectory data while maintaining compatibility with Zepta AI tools.
Features
-
ResizeImageBatch: Resize a batch of images with various methods and settings
- Control output dimensions with multiple input options
- Keep proportions while resizing
- Make dimensions divisible by a specific value
- Choose from multiple upscaling methods (nearest-exact, bilinear, area, bicubic, lanczos)
- Center cropping option
-
ResizeTrajectoryBatch: Resize trajectory coordinates proportionally to match resized images
- Automatically scales trajectory points to new dimensions
- Maintains the relative positioning of trajectory data
Installation
-
Clone this repository into your ComfyUI custom_nodes directory:
cd path/to/ComfyUI/custom_nodes git clone https://github.com/yourusername/ComfyUI-ResizeZeptaPayload.git
-
Restart ComfyUI
Usage
ResizeImageBatch
The node can be found in the node menu under the "ResizeZeptaPayload" category.
Input parameters:
images
: Batch of images to resizeoutput_width
: Target width (set to 0 to maintain original width)output_height
: Target height (set to 0 to maintain original height)upscale_method
: Interpolation method to usekeep_proportion
: Whether to maintain aspect ratiodivisible_by
: Make dimensions divisible by this valuecrop
: Crop method (disabled or center)width_input
(optional): Override output widthheight_input
(optional): Override output heightget_size_from_image
(optional): Get dimensions from this image
ResizeTrajectoryBatch
Input parameters:
input_width
: Original width of the contextinput_height
: Original height of the contextoutput_width
: Target widthoutput_height
: Target heighttrajectories
: JSON string containing trajectory data