ComfyUI-SaveAs

ComfyUI-SaveAs
★ 8

图像保存多格式支持ICO尺寸预设自动命名预览
在ComfyUI中将图像导出为PNG、JPG、WebP、ICO等多格式,支持质量设置、ICO尺寸预设、自动命名与预览。
💡 将生成图片导出为指定格式并自动命名与预览
🍴 3 Forks💻 Python🔄 2024-08-19
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/f414772aa5c3
📦 requirements.txt
Pillow>=9.5.0
image
📄 README

ComfyUI-SaveAs

A custom node for ComfyUI that allows saving images in multiple formats with advanced options and a preview feature.

Supported Formats

  • Images: PNG, JPG, WEBP, ICO, GIF, BMP, TIFF
  • Features

  • High-quality saving for all supported formats
  • Customizable quality settings for applicable formats
  • ICO size presets (Small, Medium, Large)
  • Preview of saved image and filenames
  • Automatic file naming to prevent overwrites
  • Installation

  • Clone this repository into your ComfyUI’s custom_nodes directory:
  • “`bash

    git clone https://github.com/SEkINVR/ComfyUI-SaveAs.git

    “`

  • Navigate to the ComfyUI-SaveAs directory:
  • “`bash

    cd ComfyUI-SaveAs

    “`

  • Run the installation script:
  • “`bash

    ./install_requirements.sh

    “`

    Requirements

    This custom node requires the following Python package:

  • Pillow >= 9.5.0
  • This is usually already installed with ComfyUI, but the installation script will ensure you have the correct version.

    Usage

  • In ComfyUI, you’ll find a new node called “Save As” under the “image/io” category.
  • Connect an image output to this node.
  • Choose your desired format, quality, and ICO size preset (if applicable).
  • Run the workflow to save your image and generate a preview.
  • Updating

    To update the node to the latest version:

  • Navigate to your ComfyUI root directory.
  • Run the following command:
  • “`bash

    ./custom_nodes/ComfyUI-SaveAs/update.sh

    “`

    Repository Structure

    ComfyUI-SaveAs/
    │
    ├── __init__.py
    ├── ComfyUISaveAs.py
    ├── README.md
    ├── requirements.txt
    ├── install_requirements.sh
    ├── update.sh
    └── examples/
        └── PC_Icon_creator_Workflow.json
        └── PC_Icon_creator_Workflow.png

    Contributing

    Contributions are welcome! Please feel free to submit a Pull Request.

    License

    MIT License