Skip to main content
100%

Decode ComfyUI workflow into JSON (Provided by Claude 3.5 Sonnet v2)

✓ Published0🌍 Public
VVioletVivirand
Last edited Feb 13, 2025
Created on Feb 13, 2025

This example decodes ComfyUI workflow data embedded in a PNG file and prints it as formatted JSON. The Python version uses Pillow’s `Image.open` and the `img.text` dictionary to extract the `workflow` text chunk, then `json.loads` parses it for pretty-printing. The shell script demonstrates an alternative using `exiftool` to retrieve the same embedded metadata directly from the image. The visualization shows the workflow structure as raw JSON, making the hidden prompt graph readable for inspection or further processing.

AI-generated description

Similar vizzes