Photo kit command

view.thirtyTwoBitPreviewOptions

32-bit Preview Options…

Sets how a 32-bit document is shown on screen: `method` exposure-and-gamma or highlight compression; view only.

Kit
Photo 0.1.0 (PSD, PSB, or .kphoto)
Changes the document
no

Parameters

Parameters of view.thirtyTwoBitPreviewOptions
NameTypeRequiredDescription
coalescestringnoMerges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one.
exposureintegerno-20 to 20
gammanumberno0.1 to 9.99
method"exposureGamma" | "highlightCompression"no

Call through photo_run

text
photo_run {
  "path": "<file>.psd",
  "steps": [{ "command": "view.thirtyTwoBitPreviewOptions" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: coalesce, exposure, gamma, method. photo_run answers the step’s result in completed[i].result.

Result

Result JSON Schema
json
{
  "additionalProperties": true,
  "description": "an object; the command's description says what it holds",
  "properties": {},
  "type": "object"
}

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"
    },
    "exposure": {
      "default": 0,
      "description": "-20 to 20",
      "type": "integer"
    },
    "gamma": {
      "default": 1,
      "description": "0.1 to 9.99",
      "type": "number"
    },
    "method": {
      "default": "exposureGamma",
      "enum": [
        "exposureGamma",
        "highlightCompression"
      ],
      "type": "string"
    }
  },
  "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.