A custom node for ComfyUI, the ComfyUI S3 Save Node facilitates the direct uploading of generated images to Cloudflare R2 or any S3-compatible storage. It incorporates secure filename generation and returns public URLs for easy access to the saved images.
- Directly uploads images to Cloudflare R2/S3 using boto3, streamlining cloud storage integration.
- Generates unique 20-character filenames for each image, ensuring no conflicts and improved organization.
- Supports batch processing, allowing multiple images to be uploaded simultaneously for enhanced efficiency.
Context
The ComfyUI S3 Save Node is designed to integrate seamlessly with the ComfyUI framework, enabling users to save generated images to cloud storage solutions like Cloudflare R2. Its primary purpose is to enhance the image handling capabilities within ComfyUI by providing a straightforward method for cloud uploads.
Key Features & Benefits
This tool offers several practical features, such as direct uploads to cloud storage using the boto3 library, which simplifies the process of managing image files. The unique filename generation reduces the risk of overwriting files and makes it easier to manage multiple uploads, while the ability to process images in batches significantly speeds up workflows.
Advanced Functionalities
In addition to its core functionalities, the node includes error handling and status reporting, which allows users to monitor the success or failure of uploads effectively. It also converts images to the WebP format, optimizing storage efficiency without compromising image quality. Furthermore, it returns a JSON response containing the public URLs of the uploaded images, making it easy to retrieve and share them.
Practical Benefits
By utilizing the ComfyUI S3 Save Node, users can improve their workflow efficiency, gain better control over image storage, and enhance the overall quality of their output. The direct upload feature eliminates the need for local storage, reducing clutter and streamlining the image management process.
Credits/Acknowledgments
This tool is released under the MIT License, allowing users to freely use and modify it. The original authors and contributors have provided a robust solution for integrating cloud storage with the ComfyUI framework.