ComfyUI Node
Discord Send & Save Image 📤
Saves images with advanced options and can send them to Discord via webhook integration. Returns the path to the first saved image.
Discord Send & Save Image 📤
- images
- image_path
◄filename_prefixComfyUI-Image►
◄overwrite_lastfalse►
◄file_formatpng►
◄quality95►
◄losslesstrue►
◄save_outputtrue►
◄show_previewtrue►
◄resize_to_power_of_2false►
◄resize_methodlanczos►
◄include_format_in_messagefalse►
◄group_batched_imagestrue►
◄add_datefalse►
◄add_timetrue►
◄add_dimensionsfalse►
◄send_to_discordfalse►
◄webhook_url►
◄discord_message►
◄include_prompts_in_messagefalse►
◄send_workflow_jsonfalse►
◄save_cdn_urlsfalse►
◄github_cdn_updatefalse►
◄github_repo►
◄github_token►
◄github_file_pathcdn_urls.md►
Categoryimage/output
Inputs (25)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | The images to save and/or send to Discord. | |
| filename_prefix | STRING | ComfyUI-Image | The prefix for the saved files. Supports %batch_num% placeholder for batch indexing. |
| overwrite_last | BOOLEAN | false | ⚠️ CAUTION: If enabled, new saves will REPLACE the previous file with the same name. Useful for iterative testing, dangerous for batch production. Note: You must also disable 'add_time' and 'add_date' to ensure filenames are identical. |
| file_formatopt | COMBO | png | The format to save images in. PNG is lossless but larger. JPEG and WebP are smaller but lossy. |
| qualityopt | INT | 951–100 | Quality (1-100) for JPEG/WebP. Ignored for PNG. Higher values = better quality but larger file size. |
| losslessopt | BOOLEAN | true | Use lossless compression for WebP (PNG is always lossless). For JPEG, forces maximum quality (100). |
| save_outputopt | BOOLEAN | true | Whether to save images to disk. When disabled, images will only be previewed in the UI. |
| show_previewopt | BOOLEAN | true | Whether to show image previews in the UI. Disable to reduce UI clutter for large batches. |
| resize_to_power_of_2opt | BOOLEAN | false | Resize images to nearest power of 2 dimensions (useful for game textures). ⚠️ May distort aspect ratio. Uses the algorithm selected in 'resize_method'. |
| resize_methodopt | COMBO | lanczos | Resampling algorithm used ONLY when 'resize_to_power_of_2' is enabled. Ignored otherwise. • lanczos: Best for photos • nearest-exact: Best for pixel art • bilinear/bicubic: Faster |
| include_format_in_messageopt | BOOLEAN | false | Whether to include the image format in the Discord message. |
| group_batched_imagesopt | BOOLEAN | true | Group all images from a batch into a single Discord message with a gallery, rather than sending each one separately. Maximum is 9 images. |
| add_dateopt | BOOLEAN | false | Add date (YYYY-MM-DD) to the filename. |
| add_timeopt | BOOLEAN | true | Add time (HH-MM-SS) to the filename. |
| add_dimensionsopt | BOOLEAN | false | Add dimensions (WxH) to the filename. |
| send_to_discordopt | BOOLEAN | false | If enabled, will send the media to Discord via webhook. |
| webhook_urlopt | STRING | Discord webhook URL. Get this from Discord server settings > Integrations > Webhooks. | |
| discord_messageopt | STRING | Message to include with the media when sending to Discord. | |
| include_prompts_in_messageopt | BOOLEAN | false | If enabled, will include the generation prompts in the Discord message. |
| send_workflow_jsonopt | BOOLEAN | false | If enabled, will send the workflow JSON alongside the media. |
| save_cdn_urlsopt | BOOLEAN | false | If enabled, will extract and save Discord CDN URLs. |
| github_cdn_updateopt | BOOLEAN | false | If enabled, will update a GitHub repository with the CDN URLs. |
| github_repoopt | STRING | GitHub repository in format 'username/repo'. | |
| github_tokenopt | STRING | GitHub Personal Access Token (PAT). Generate at: Settings > Developer settings > Tokens. ⚠️ Requires 'repo' scope (or 'public_repo') to upload files. | |
| github_file_pathopt | STRING | cdn_urls.md | Path to the file in the GitHub repository to update. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image_path | STRING | — |