Extensions/Save Image (copy EXIF from source)
ComfyUI Extension

Save Image (copy EXIF from source)

ComfyUI node to save images while copying EXIF metadata from a source image

By kevinkessler·Created 3 months ago·Updated 3 months ago· 0
kevinkessler/comfyui-save-with-exif
Nodes1
On cloudLocal install
Categoryimage
Stars0
Updated3 months ago
Readme

comfyui-save-with-exif

A ComfyUI custom node that saves images while copying EXIF metadata (date/time, camera model, GPS, etc.) from an original source image.

Useful when you upscale or edit a photo and want the output file to retain the original camera metadata — so photo managers, maps, and galleries still see the correct date, location, and device info.

Node: Save Image (copy EXIF from source)

Category: image

Inputs

| Name | Type | Description | |------|------|-------------| | images | IMAGE | Processed image(s) to save | | source_image | file picker | Original image in ComfyUI's input/ directory whose EXIF should be copied | | filename_prefix | STRING | Output filename prefix (default: ComfyUI) | | format | jpg | png | Output format | | quality | INT 1–100 | JPEG quality (default: 95) |

Notes

  • EXIF is read from the raw bytes of the source image to preserve all tags including MakerNote.
  • For PNG output, ComfyUI workflow metadata (prompt, extra_pnginfo) is embedded alongside the EXIF.
  • If the source image has no EXIF, the image is still saved without error.