compare
Compare before and after, or two regions. mode='before_after': the photo without its filters against the photo with them, whole or in a region, as per-channel mean and percentile changes, optionally with paired before/after preview images (include_previews). mode='regions': statistics for two named rectangles (region_a, region_b) on the current, filtered photo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | 'before_after': proxy base (no filters) vs proxy+filters, whole-image or `region` — per-channel stat deltas. 'regions': two rects on the SAME (filtered) image, stats for each, no delta (compare them yourself). | |
| image | Yes | Image id, as returned by open_photo. | |
| max_px | No | before_after only. Long-edge cap for the proxy render, in pixels. | |
| region | No | before_after only. Restricts the comparison to this rectangle; default whole image. | |
| channels | No | Default: all four. | |
| region_a | No | regions only. First rectangle. | |
| region_b | No | regions only. Second rectangle. | |
| include_previews | No | before_after only. Also return paired before/after preview images (subject to privacy.send_previews_to_llm, same as preview). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| delta | No | ||
| proxy | No | ||
| before | No | ||
| region_a | No | ||
| region_b | No | ||
| unmirrored_filters | No | before_after only. Names of live filters that could not be re-attached on the "after" proxy render — the delta above is missing that filter's effect entirely. |