Save Image Extended for ComfyUI Introduction
The save-image-extended-comfyui
extension is a powerful tool designed to enhance your experience with ComfyUI by providing advanced options for saving your generated images. This extension allows you to save images in various formats such as JXL, AVIF, WebP, JPEG, JPEG2k, PNG, GIF, TIFF, and BMP. Additionally, it offers extensive customization options for organizing your images into folders and sub-folders, and for naming your files based on various parameters.
For AI artists, this means you can keep your work organized and easily accessible, with filenames and folder structures that reflect the details of your creative process. This can be particularly useful for tracking different versions of your work, comparing results from different models or settings, and sharing your work with others in a clear and structured way.
How Save Image Extended for ComfyUI Works
The extension works by integrating with ComfyUI to intercept the image-saving process. It allows you to define custom rules for how and where your images are saved. You can specify prefixes for filenames and folder names, include various parameters in the names, and even save additional metadata about each image in a JSON file.
Think of it as a highly customizable filing system for your images. Instead of manually renaming and organizing your files, you set up rules once, and the extension takes care of the rest. For example, you can automatically include the date, the model used, and specific settings in the filename, making it easy to identify each image at a glance.
Save Image Extended for ComfyUI Features
Customizable Filenames and Folder Names
- Filename Prefix: Add a custom string at the beginning of each filename.
- Filename Keys: Include parameters such as sampler name, scheduler, configuration, and more in the filename.
- Foldername Prefix: Add a custom string at the beginning of each folder name.
- Foldername Keys: Include parameters in the folder names, and create subfolders by using "./" in the key name.
- Delimiter: Choose a character to separate different parts of the filename or folder name.
- Save Job Data: Save information about each job (e.g., sampler, prompts, models) in a
jobs.json
file within each folder.
- Job Data Per Image: Save individual job data files for each image.
- Job Custom Text: Add custom text to the job data, which can be connected to other nodes.
Image Saving Options
- Output Extension: Choose the file format for saving images (e.g., PNG, WebP).
- Quality: Set the quality level for formats like JPEG, JXL, WebP, AVIF, and J2K.
- Save Metadata: Embed metadata into the image file.
- Image Preview: Enable or disable image previews.
Counter and Date/Time
- Counter Digits: Set the number of digits for the image counter (e.g.,
image_001.png
).
- Counter Position: Choose whether the counter appears at the beginning or end of the filename.
- One Counter Per Folder: Decide if the counter should reset when parameters change or if it should be unique per folder.
- Automatic Date/Time Conversion: Use Unix datetime formats in filenames and folder names.
Save Image Extended for ComfyUI Models
This section is not applicable as the extension does not include different models.
What's New with Save Image Extended for ComfyUI
Recent Updates
- Release 2.76: Reintroduced resolution parameter.
- Release 2.75: Added the option to prefix each value by its key name.
- Release 2.74: Updated help popup and made minor cosmetic fixes.
- Release 2.73: Added support for
ckpt_path
and control_net_path
for subfolders.
- Release 2.70: Added support for JPEG-XL and JPEG2000 formats.
- Release 2.65: Published in the ComfyUI registry.
- Release 2.64: Added a help button based on KJNodes.
- Release 2.63: Fixed issues with saving negative prompts and job data.
These updates bring new features and improvements that enhance the functionality and user experience of the extension, making it more versatile and user-friendly for AI artists.
Troubleshooting Save Image Extended for ComfyUI
Common Issues and Solutions
- Unknown Key Names: If you enter an unknown key name in
filename_keys
or foldername_keys
, it will be treated as a custom string. Ensure you use valid parameter names.
- Illegal Characters: The extension does not check for illegal characters in file or folder names. Avoid using characters that are not supported by your file system.
- Compatibility: The extension may not be compatible with all custom nodes, depending on changes in the
prompt
object. It has been tested with default samplers, Efficiency nodes, UltimateSDUpscale, and others.
Frequently Asked Questions
- How do I include the date in filenames?
Use Unix datetime formats like
%Y-%m-%d
in your filename_keys
or foldername_keys
.
- Can I save images in multiple formats?
Currently, you can choose one format at a time for saving images. You can change the format in the settings.
- Why is my counter not resetting?
Check the
one_counter_per_folder
setting to ensure it is configured as you need.
Learn More about Save Image Extended for ComfyUI
For additional resources, tutorials, and community support, you can visit the following links:
- ComfyUI Documentation
- Unix Datetime Formats (https://www.man7.org/linux/man-pages/man1/date.1.html)
- ExifTool (https://exiftool.org/)
These resources will help you get the most out of the
save-image-extended-comfyui
extension and connect with other AI artists who are using the same tools. Happy saving!