Nodes/ComfyUI-DiscordSend/Discord Send & Save Image 📤
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.

By AEmotionStudio·Created about a year ago·Updated 3 months ago· 13
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)

NameTypeDefaultDescription
imagesIMAGEThe images to save and/or send to Discord.
filename_prefixSTRINGComfyUI-ImageThe prefix for the saved files. Supports %batch_num% placeholder for batch indexing.
overwrite_lastBOOLEANfalse⚠️ 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_formatoptCOMBOpngThe format to save images in. PNG is lossless but larger. JPEG and WebP are smaller but lossy.
qualityoptINT951–100Quality (1-100) for JPEG/WebP. Ignored for PNG. Higher values = better quality but larger file size.
losslessoptBOOLEANtrueUse lossless compression for WebP (PNG is always lossless). For JPEG, forces maximum quality (100).
save_outputoptBOOLEANtrueWhether to save images to disk. When disabled, images will only be previewed in the UI.
show_previewoptBOOLEANtrueWhether to show image previews in the UI. Disable to reduce UI clutter for large batches.
resize_to_power_of_2optBOOLEANfalseResize images to nearest power of 2 dimensions (useful for game textures). ⚠️ May distort aspect ratio. Uses the algorithm selected in 'resize_method'.
resize_methodoptCOMBOlanczosResampling 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_messageoptBOOLEANfalseWhether to include the image format in the Discord message.
group_batched_imagesoptBOOLEANtrueGroup all images from a batch into a single Discord message with a gallery, rather than sending each one separately. Maximum is 9 images.
add_dateoptBOOLEANfalseAdd date (YYYY-MM-DD) to the filename.
add_timeoptBOOLEANtrueAdd time (HH-MM-SS) to the filename.
add_dimensionsoptBOOLEANfalseAdd dimensions (WxH) to the filename.
send_to_discordoptBOOLEANfalseIf enabled, will send the media to Discord via webhook.
webhook_urloptSTRINGDiscord webhook URL. Get this from Discord server settings > Integrations > Webhooks.
discord_messageoptSTRINGMessage to include with the media when sending to Discord.
include_prompts_in_messageoptBOOLEANfalseIf enabled, will include the generation prompts in the Discord message.
send_workflow_jsonoptBOOLEANfalseIf enabled, will send the workflow JSON alongside the media.
save_cdn_urlsoptBOOLEANfalseIf enabled, will extract and save Discord CDN URLs.
github_cdn_updateoptBOOLEANfalseIf enabled, will update a GitHub repository with the CDN URLs.
github_repooptSTRINGGitHub repository in format 'username/repo'.
github_tokenoptSTRINGGitHub Personal Access Token (PAT). Generate at: Settings > Developer settings > Tokens. ⚠️ Requires 'repo' scope (or 'public_repo') to upload files.
github_file_pathoptSTRINGcdn_urls.mdPath to the file in the GitHub repository to update.

Outputs (1)

NameTypeDescription
image_pathSTRING