Resize a batch of trajectories or images
A custom node extension for ComfyUI that provides utilities for resizing images and trajectory data while maintaining compatibility with Zepta AI tools.
ResizeImageBatch: Resize a batch of images with various methods and settings
ResizeTrajectoryBatch: Resize trajectory coordinates proportionally to match resized images
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
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 imageInput 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