analyze_color
Measure color properties of images to detect washed out, low contrast, and color cast issues. Returns black/white points, saturation, and clipping analysis with a verdict.
Instructions
Measure the color of a rendered image (not by eye): returns black/white points, contrast (luma std), saturation, per-channel means + cast, and clipping — plus heuristic flags (washedOut, lowContrast, liftedBlacks, dimHighlights, lowSaturation, colorCast) and a one-line verdict. Source = asset_id, a ComfyUI output ref (filename/subfolder/type), or an image path. Pass reference_path to shot-match against a known-good frame (target−reference deltas). Set histogram:true to also get an overlaid R/G/B/luma histogram PNG. Use this to diagnose 'washed out' objectively and decide a color fix; for a video, extract a frame to PNG first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute image path, or a path under the ComfyUI output dir. Provide one source: asset_id, filename, or path. (Videos: extract a frame to PNG first.) | |
| type | No | ComfyUI dir for the output ref (default 'output'). | |
| asset_id | No | Registered asset id from a completed job. Provide one source: asset_id, filename, or path. | |
| filename | No | A ComfyUI output ref filename (pair with subfolder/type). Provide one source: asset_id, filename, or path. | |
| histogram | No | Also return an overlaid R/G/B/luma histogram PNG for visual confirmation (default false). | |
| subfolder | No | Subfolder for the output ref (default empty). | |
| reference_path | No | Optional reference image to shot-match against; returns target−reference deltas for contrast, black/white points, saturation, and per-channel means. |