Color Matching: replace colours
td_color_matching_replaceSwap specific colors in a design by mapping current hex values to exact replacement hex values. Saves each result to disk and returns file paths.
Instructions
Color Matching Replace Color: swap specific colours in the design. mappings = one set of {from, to} hex pairs; sets = several alternative sets, one output each (max 15). Get the current hexes from td_color_matching_extract_colors. Best for: swapping specific design colours for exact new values. Result files are saved to disk and their paths returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sets | No | Several mapping sets; each produces its own output. | |
| wait | No | Wait for the job and save the outputs (default true). false returns the task_id right after submit. | |
| image | Yes | Source image: a local file path or an http(s) URL. PNG, JPEG or WebP, up to 80 MB and 5000 px per side. | |
| mappings | No | One mapping set: colours to replace and their new values. | |
| output_dir | No | Folder to save results in. Default: the folder of the input image (or the current directory for URL inputs). Files are never overwritten. | |
| print_ready | No | Print Ready: store input image resolution for print production. Default false. | |
| estimate_only | No | Only return the credit estimate; nothing is uploaded or charged. | |
| review_settings | No | Omit it and the tool first asks whether to use the recommended settings or adjust them (unless the call already sets some). true: ask each setting one by one. false: run with the given or recommended settings without asking; pass it only after the user chose that. | |
| timeout_seconds | No | How long to wait for the job before returning its task_id (default 240). | |
| unlimited_bundle | No | Request the Unlimited bundle for this run (only has effect on Unlimited plans; the server decides). |