Photo kit command
image.adjustments.hdrToning
HDR Toning…
Tone-maps a 32-bit or flattened image: local `radius`/`strength` edge glow, `exposure`, `gamma`, `detail`, saturation and a tone `curve`; flattens the document.
- Kit
- Photo 0.1.0 (PSD, PSB, or .kphoto)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
coalesce | string | no | Merges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one. |
curve | any | no | [[in,out],…] 0..255 |
detail | integer | no | -100 to 300 |
exposure | integer | no | -5 to 5 |
gamma | number | no | 0.1 to 2 |
highlight | integer | no | -100 to 100 |
radius | integer | no | 1 to 500 |
saturation | integer | no | -100 to 100 |
shadow | integer | no | -100 to 100 |
strength | number | no | 0.1 to 4 |
target | string | object | no | Where the pixels go: "pixels" (the layer, by default), "mask", "quickMask", or {"channel": i}. |
vibrance | integer | no | -100 to 100 |
Call through photo_run
text
photo_run {
"path": "<file>.psd",
"steps": [{ "command": "image.adjustments.hdrToning" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: coalesce, curve, detail, exposure, gamma, highlight, radius, saturation, shadow, strength, target, vibrance. photo_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
json
{
"additionalProperties": false,
"properties": {
"coalesce": {
"description": "Merges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one.",
"type": "string"
},
"curve": {
"description": "[[in,out],…] 0..255"
},
"detail": {
"default": 30,
"description": "-100 to 300",
"type": "integer"
},
"exposure": {
"default": 0,
"description": "-5 to 5",
"type": "integer"
},
"gamma": {
"default": 1,
"description": "0.1 to 2",
"type": "number"
},
"highlight": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"radius": {
"default": 30,
"description": "1 to 500",
"type": "integer"
},
"saturation": {
"default": 20,
"description": "-100 to 100",
"type": "integer"
},
"shadow": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
},
"strength": {
"default": 0.5,
"description": "0.1 to 4",
"type": "number"
},
"target": {
"description": "Where the pixels go: \"pixels\" (the layer, by default), \"mask\", \"quickMask\", or {\"channel\": i}.",
"oneOf": [
{
"type": "string"
},
{
"additionalProperties": true,
"type": "object"
}
]
},
"vibrance": {
"default": 0,
"description": "-100 to 100",
"type": "integer"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (photo_commands through @kition/[email protected], built from KitionAI/kition-photo@abe3f30). As data: commands.jsonl.