Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-JPG-Metadata

ComfyUI Extension: ComfyUI-JPG-Metadata

Repo Name

ComfyUI-JPG-Metadata

Author
amarillys (Account age: 0 days)
Nodes
View all nodes(1)
Latest Updated
2026-09-18
Github Stars
0.0K

How to Install ComfyUI-JPG-Metadata

Install this extension via the ComfyUI Manager by searching for ComfyUI-JPG-Metadata
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-JPG-Metadata in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ComfyUI-JPG-Metadata Description

ComfyUI-JPG-Metadata saves images as smaller JPEGs with embedded workflow and prompt data, so you can drag them back into ComfyUI to restore the workflow or prompt for later editing.

ComfyUI-JPG-Metadata Introduction

ComfyUI-JPG-Metadata lets you save ComfyUI images as JPEGs without losing the information needed to reopen their workflows. When you use one of the extension’s JPEG nodes, it stores workflow and prompt information inside the image file. You can then drag that JPEG back into ComfyUI to restore the workflow.

This is useful when you want smaller image files but still need to revisit how an image was made. The author reports typical storage savings of 80%–85%. Your actual savings will depend on the images and the files you compare them with.

ComfyUI normally stores complete workflow information in PNG files. Saving an image as an ordinary JPEG can leave that workflow behind. This extension adds a way to carry it with the JPEG instead.

How ComfyUI-JPG-Metadata Works

Think of the JPEG as the finished artwork and its metadata as a note tucked inside the file. The note does not change what you see in the image; it holds information ComfyUI can use later.

  1. You connect your image to Save Image (JPG) or Preview Image (JPG) in ComfyUI.
  2. The node creates a JPEG and, when metadata is enabled, places the prompt and available workflow information in the JPEG’s EXIF UserComment field.
  3. When you drag a JPEG saved by the extension into ComfyUI, the extension reads that field. If it finds a complete workflow, it loads the workflow graph. Otherwise, if it finds prompt data, it loads that instead.

For example, you could save a finished image with Save Image (JPG), share or archive the JPEG, and later drag it into ComfyUI to continue working from its saved workflow. This depends on the workflow information still being present in the file.

ComfyUI-JPG-Metadata Features

FeatureWhat it means for you
Save Image (JPG)Saves a JPEG with prompt and workflow metadata to ComfyUI’s output/ directory. Use it for images you want to keep.
Preview Image (JPG)Creates a JPEG preview with metadata in a temporary directory. Temporary files are cleaned up, so use Save Image (JPG) for a permanent output unless you explicitly save the preview.
Quality sliderBoth nodes let you choose a JPEG quality value from 1 to 100. A lower value generally makes a smaller file with more visible compression; a higher value generally preserves more visual detail but uses more storage.
Drag-and-drop restoreDrag a .jpg or .jpeg created by the extension into ComfyUI to load its embedded workflow, or its prompt data when a complete workflow is unavailable.
PNG-to-JPEG conversion toolThe author also provides a GUI tool for converting older PNG images into JPEGs with workflow information. The supplied documentation does not describe its controls or conversion steps.

The JPEG nodes take the same general inputs as ComfyUI’s built-in SaveImage and PreviewImage nodes, apart from PNG-specific options, and add the quality setting.

Keep these limits in mind:

  • JPEG cannot preserve transparency. If your image has an alpha channel, the extension converts it to RGB when saving.
  • The metadata field has a practical capacity of about 64 KB. A very complex workflow may be too large to store there.
  • If ComfyUI is started with --disable-metadata, the extension does not write workflow metadata to the JPEG.

Troubleshooting ComfyUI-JPG-Metadata

Dragging a JPEG into ComfyUI does not restore the workflow

  1. Check that the file was saved with this extension’s Save Image (JPG) or Preview Image (JPG) node. An ordinary JPEG may not contain a ComfyUI workflow.
  2. Check whether ComfyUI was run with --disable-metadata. If so, no metadata was written when the image was saved.
  3. Try another JPEG saved by the extension. A very complex workflow may exceed the metadata field’s practical size limit.
  4. If a prompt loads but the full node graph does not, the file may contain prompt data without a workflow entry. The extension uses the prompt as a fallback in that case.

A transparent image no longer has transparency

JPEG does not support alpha channels. The extension converts images with transparency to RGB when saving them as JPEGs. Keep a format that supports transparency when that part of the image matters to your work.

A preview image is no longer available

Preview Image (JPG) writes to a temporary directory whose files are cleaned up. For work you intend to keep, use Save Image (JPG), or explicitly save the preview.

Frequently Asked Questions

Will every JPEG restore a ComfyUI workflow?
No. The drag-and-drop feature reads workflow or prompt information from the JPEG’s metadata. A JPEG without that information cannot supply it.

Does the quality slider change the saved workflow?
The slider controls JPEG image quality. Workflow and prompt information are stored separately as metadata, subject to the metadata size limit.

Will a JPEG always be 80%–85% smaller?
No. That figure is the author’s typical reported saving, not a guarantee for every image.

Which should I use: Save Image (JPG) or Preview Image (JPG)?
Use Save Image (JPG) for an output you want to keep. Use Preview Image (JPG) when you want a temporary preview.

Learn More about ComfyUI-JPG-Metadata

For the extension’s source and any additional information from the author, see the ComfyUI-JPG-Metadata repository.

ComfyUI-JPG-Metadata Related Nodes

RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

ComfyUI-JPG-Metadata detailed guide | ComfyUI