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

Parameters of image.adjustments.hdrToning
NameTypeRequiredDescription
coalescestringnoMerges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one.
curveanyno[[in,out],…] 0..255
detailintegerno-100 to 300
exposureintegerno-5 to 5
gammanumberno0.1 to 2
highlightintegerno-100 to 100
radiusintegerno1 to 500
saturationintegerno-100 to 100
shadowintegerno-100 to 100
strengthnumberno0.1 to 4
targetstring | objectnoWhere the pixels go: "pixels" (the layer, by default), "mask", "quickMask", or {"channel": i}.
vibranceintegerno-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.