Nodes/MD Nodes/MD: Advanced Media Save
ComfyUI Node

MD: Advanced Media Save

A ComfyUI node in MD_Nodes/Save with 11 inputs and 1 output.

By MDMAchine·Created about a year ago·Updated 2 months ago· 14
MD: Advanced Media Save
  • images
  • file_path
filename_prefixAMS_%Y-%m-%d
save_formatPNG
save_metadatatrue
custom_notes
jpeg_quality95
webp_quality90
webp_losslesstrue
framerate8.0
video_quality8
debug_mode0 - Silent
CategoryMD_Nodes/Save

Inputs (11)

NameTypeDefaultDescription
imagesIMAGEIMAGE INPUT • Purpose: The image or batch of images to save. • Format: Standard ComfyUI IMAGE tensor [batch, height, width, 3].
filename_prefixSTRINGAMS_%Y-%m-%dFILENAME PREFIX • Purpose: Prefix for the saved file(s). • Options: Supports strftime codes (e.g., %Y, %m, %d, %H, %M, %S). • Note: Automatically appended with a timestamp to prevent overwrites. ⭐ Recommended: Keep default or add project name (e.g., 'projectX_%Y-%m-%d').
save_formatCOMBOPNGSAVE FORMAT • Purpose: Choose the output file format. • Static: PNG, JPEG, WEBP save each image in the batch individually. • Animation: GIF, MP4, WEBM compile the batch into a single video file. ⭐ Recommended: PNG for highest quality static images.
save_metadataoptBOOLEANtrueSAVE METADATA • Purpose: Toggle embedding workflow and prompt data into the file. • Trade-offs: Large workflows may bloat file sizes. Automatically triggers Sidecar JSON if > 256KB. ⭐ Recommended: True (unless sharing publicly and privacy is needed).
custom_notesoptSTRINGCUSTOM NOTES • Purpose: Add personal text notes to the file's metadata. • Note: Only embedded if 'Save Metadata' is True.
jpeg_qualityoptINT951–100JPEG QUALITY • Purpose: Compression quality for JPEG formats. • Range: 1 (Lowest) to 100 (Highest). ⭐ Recommended: 95 for best balance of size and quality.
webp_qualityoptINT901–100WEBP QUALITY • Purpose: Compression quality for lossy WEBP formats. • Note: Ignored if 'WEBP Lossless' is enabled. ⭐ Recommended: 90.
webp_losslessoptBOOLEANtrueWEBP LOSSLESS • Purpose: Forces WEBP to save with zero quality loss. • Trade-offs: Perfect quality but significantly larger file sizes. ⭐ Recommended: True.
framerateoptFLOAT8.00.1–60FRAMERATE (FPS) • Purpose: Playback speed for animation formats (GIF, MP4, WEBM). • Options: 8-12 fps is common for standard GIF generations. ⭐ Recommended: 8.0
video_qualityoptINT81–10VIDEO QUALITY • Purpose: Internal quality parameter for MP4 (H.264) and WEBM (VP9). • Range: 1 (Lowest) to 10 (Highest lossless). ⭐ Recommended: 8.
debug_modeoptCOMBO0 - SilentLOGGING VERBOSITY • Purpose: Controls console output and enables disk I/O profiling. • Options: 0 (Silent), 1 (Info/Stats), 2 (Verbose). ⭐ Recommended: 0 - Silent for standard production.

Outputs (1)

NameTypeDescription
file_pathSTRING