Feature: colprof -u (Structured JSON Calculation Progress) #13

Merged
gronod merged 1 commits from feature/colprof-json-progress into main 2026-08-21 21:52:12 +01:00
Owner

Feature: colprof -u (Structured JSON Calculation Progress)

Summary

Adds the -u command-line switch to colprof to emit structured JSON progress events ({"event": "progress", "stage": "<stage>", "percent": <0-100>}) to stdout during ICC profile calculation.

Changes

  • Added -u to profile/colprof.c and documented it in usage() and doc/colprof.html.
  • Implemented emit_json_progress() in profile/colprof.c and declared in profile/prof.h.
  • Integrated progress emission for calculation stages: "gamut_mapping", "a2b_table", "b2a_table", and "gamut_table" in profile/profout.c and profile/profin.c.
  • Fixed stdout warning in rspl/rev.c to use warning() ensuring pure NDJSON output on stdout when -u is active.

Fixes #4

## Feature: colprof -u (Structured JSON Calculation Progress) ### Summary Adds the `-u` command-line switch to `colprof` to emit structured JSON progress events (`{"event": "progress", "stage": "<stage>", "percent": <0-100>}`) to `stdout` during ICC profile calculation. ### Changes - Added `-u` to `profile/colprof.c` and documented it in `usage()` and `doc/colprof.html`. - Implemented `emit_json_progress()` in `profile/colprof.c` and declared in `profile/prof.h`. - Integrated progress emission for calculation stages: `"gamut_mapping"`, `"a2b_table"`, `"b2a_table"`, and `"gamut_table"` in `profile/profout.c` and `profile/profin.c`. - Fixed stdout warning in `rspl/rev.c` to use `warning()` ensuring pure NDJSON output on stdout when `-u` is active. Fixes #4
gronod added 1 commit 2026-08-21 21:45:02 +01:00
Adds a -u command-line flag to colprof to emit newline-delimited JSON progress events (stage and percent) during ICC profile calculation.

Fixes #4
gronod merged commit c84b78734f into main 2026-08-21 21:52:12 +01:00
gronod deleted branch feature/colprof-json-progress 2026-08-22 09:30:32 +01:00
Sign in to join this conversation.