3.9 KiB
3.9 KiB
Node: IMAGE Saver @ vrch.ai (vrch.ai/image)
-
Add the
IMAGE Saver @ vrch.ainode to your ComfyUI workflow. -
Configure the Node:
- Image Input:
images: Provide one or more images to be saved.
- Filename:
filename: Specify the base filename for saving the image(s). If multiple images are provided, an index will be appended (e.g.,web_viewer_image_00.jpeg).
- Path:
path: Define the subfolder within the ComfyUI output directory where the images will be saved (default isweb_viewer).
- File Extension:
extension: Choose the output image format fromjpeg,png, orwebp(default isjpeg).
- Quality Settings:
quality_jpeg_or_webp: Set the quality for JPEG or WEBP images (default is 85, valid range: 1–100).optimize_png: Enable PNG optimization when saving PNG images.lossless_webp: Enable lossless compression for WEBP images.
- Preview Option:
enable_preview: If enabled, the node will return preview information for the saved images.
- Image Input:
-
Save Images:
- The node saves the provided images into the specified subfolder under the ComfyUI output directory using the given filename and file extension.
- When multiple images are provided, filenames will be automatically suffixed with an index.
Node: IMAGE Preview in Background @ vrch.ai (vrch.ai/image)
1. Adding the Node
Add the IMAGE Preview in Background @ vrch.ai node to your ComfyUI workflow.
2. Node Configuration
- Image Input:
images: Provide a single image to be used for the background preview.
- Channel:
channel: Select a channel number from "1" to "8" (default is "1"). This determines the filename prefix (e.g.,channel_1.jpegor in batch modechannel_1_00.jpeg).
- Background Display:
background_display: Toggle to enable or disable displaying the image as a background in ComfyUI.
- Refresh Interval:
refresh_interval_ms: Set the interval (in milliseconds) for refreshing the background preview (default is 300ms).
- Display Option:
display_option: Choose how the image is displayed in the background. Options includeoriginal,fit,stretch, andcrop(default isfit).
- Batch Display:
batch_display: Toggle to enable batch display mode. When enabled, the node will cycle through multiple images within a batch.
- Batch Display Interval:
batch_display_interval_ms: Set the interval (in milliseconds) for switching between images in batch mode (default is 200ms).
- Batch Images Size:
batch_images_size: Define the total number of images in the batch, which determines the range for the index used in the filename (default is 4).
3. Background Preview
- When
background_displayis enabled, the node saves the input image to thepreview_backgroundsubfolder within the ComfyUI output directory. - File Naming Rules:
- If
batch_displayis false, the saved filename format is:
channel_{channel}.jpeg - If
batch_displayis true, the saved filename format is:
channel_{channel}_{index:02d}.jpeg
where{index}is updated cyclically based onbatch_display_interval_msand within the range defined bybatch_images_size(for example:channel_1_00.jpeg,channel_1_01.jpeg,channel_1_02.jpeg,channel_1_03.jpeg).
- If
4. Notes
- Ensure that the output directory is correctly configured, as the node saves images into the
preview_backgroundfolder within that directory. - The node dynamically updates the background preview by refreshing the saved image at the set interval. Adjust the refresh interval and batch display parameters as needed for optimal preview performance.
