Photo kit command

filter.rawDevelop

Raw Develop Filter…

Applies Raw Develop-style tone and color controls (active pixel layer, inside the selection if any): exposure, contrast, highlights, shadows, whites, blacks, clarity, vibrance, saturation, tone curve, temperature and tint.

Kit
Photo 0.1.0 (PSD, PSB, or .kphoto)
Changes the document
yes
Acts on
layer (one id), which a run step’s on fills

Parameters

Parameters of filter.rawDevelop
NameTypeRequiredDescription
atnumber[]noInstead of `layer`: a point [x, y] in image pixels; the command acts on the topmost visible layer, not fully locked, with a pixel there (the Move tool's Auto-Select).
blacksintegerno-100 to 100
clarityintegerno-100 to 100
coalescestringnoMerges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one.
contrastintegerno-100 to 100
curveDarksintegerno-100 to 100
curveHighlightsintegerno-100 to 100
curveLightsintegerno-100 to 100
curveShadowsintegerno-100 to 100
curveSplitsnumber[]no[25, 50, 75]
dehazeintegerno-100 to 100
exposureintegerno-5 to 5
gradeBalanceintegerno-100 to 100
gradeBlendingintegerno0 to 100
gradeGlobalobjectno
gradeHighlightsobjectno
gradeMidtonesobjectno
gradeShadowsobjectno
grainAmountintegerno0 to 100
grainRoughnessintegerno0 to 100
grainSizeintegerno0 to 100
highlightsintegerno-100 to 100
hslHueinteger[]no
hslLuminteger[]no
hslSatinteger[]no
layerinteger | stringnoThe layer: its id as inspect lists it, "#n" (the n-th layer of the image's top level as inspect lists it, counted from the top: "#1" is the top one), or its whole name when no other layer has it; the active layer by default.
noiseColorintegerno0 to 100
noiseColorDetailintegerno0 to 100
noiseLuminanceintegerno0 to 100
noiseLuminanceDetailintegerno0 to 100
pointCurvenumber[][]no
pointCurveBluenumber[][]no
pointCurveGreennumber[][]no
pointCurveRednumber[][]no
regionobjectnoWhere the command acts, for this call only: {"rect": [x, y, width, height]}, {"ellipse": [x, y, width, height]}, {"polygon": [[x, y], …]} (3 points or more), {"layer": id} (that layer's pixels, by their opacity), {"channel": name or index} (a saved selection or alpha channel), or "all"; add "invert": true to take everything else. Without it, inside the current selection (made with select.* earlier in the run), or everywhere when there is none.
saturationintegerno-100 to 100
seedintegerno
shadowsintegerno-100 to 100
sharpenAmountintegerno0 to 150
sharpenDetailintegerno0 to 100
sharpenMaskingintegerno0 to 100
sharpenRadiusnumberno0.5 to 3
targetstring | objectnoWhere the pixels go: "pixels" (the layer, by default), "mask", "quickMask", or {"channel": i}.
temperatureintegerno-100 to 100
textureintegerno-100 to 100
tintintegerno-100 to 100
vibranceintegerno-100 to 100
vignetteAmountintegerno-100 to 100
vignetteFeatherintegerno0 to 100
vignetteHighlightsintegerno0 to 100
vignetteMidpointintegerno0 to 100
vignetteRoundnessintegerno-100 to 100
vignetteStyle"highlightPriority" | "colorPriority" | "paintOverlay"no
whitesintegerno-100 to 100

Call through photo_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: at, blacks, clarity, coalesce, contrast, curveDarks, curveHighlights, curveLights, curveShadows, curveSplits, dehaze, exposure, gradeBalance, gradeBlending, gradeGlobal, gradeHighlights, gradeMidtones, gradeShadows, grainAmount, grainRoughness, grainSize, highlights, hslHue, hslLum, hslSat, layer, noiseColor, noiseColorDetail, noiseLuminance, noiseLuminanceDetail, pointCurve, pointCurveBlue, pointCurveGreen, pointCurveRed, region, saturation, seed, shadows, sharpenAmount, sharpenDetail, sharpenMasking, sharpenRadius, target, temperature, texture, tint, vibrance, vignetteAmount, vignetteFeather, vignetteHighlights, vignetteMidpoint, vignetteRoundness, vignetteStyle, whites. 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": {
    "at": {
      "description": "Instead of `layer`: a point [x, y] in image pixels; the command acts on the topmost visible layer, not fully locked, with a pixel there (the Move tool's Auto-Select).",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "blacks": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "clarity": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "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"
    },
    "contrast": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "curveDarks": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "curveHighlights": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "curveLights": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "curveShadows": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "curveSplits": {
      "description": "[25, 50, 75]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "dehaze": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "exposure": {
      "default": 0,
      "description": "-5 to 5",
      "type": "integer"
    },
    "gradeBalance": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "gradeBlending": {
      "default": 50,
      "description": "0 to 100",
      "type": "integer"
    },
    "gradeGlobal": {
      "additionalProperties": true,
      "type": "object"
    },
    "gradeHighlights": {
      "additionalProperties": true,
      "type": "object"
    },
    "gradeMidtones": {
      "additionalProperties": true,
      "type": "object"
    },
    "gradeShadows": {
      "additionalProperties": true,
      "properties": {
        "hue": {
          "description": "degrees",
          "type": "number"
        },
        "lum": {
          "description": "-100 to 100",
          "type": "integer"
        },
        "sat": {
          "description": "0 to 100",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "grainAmount": {
      "default": 0,
      "description": "0 to 100",
      "type": "integer"
    },
    "grainRoughness": {
      "default": 50,
      "description": "0 to 100",
      "type": "integer"
    },
    "grainSize": {
      "default": 25,
      "description": "0 to 100",
      "type": "integer"
    },
    "highlights": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "hslHue": {
      "items": {
        "default": 8,
        "type": "integer"
      },
      "type": "array"
    },
    "hslLum": {
      "items": {
        "default": 8,
        "type": "integer"
      },
      "type": "array"
    },
    "hslSat": {
      "items": {
        "default": 8,
        "type": "integer"
      },
      "type": "array"
    },
    "layer": {
      "description": "The layer: its id as inspect lists it, \"#n\" (the n-th layer of the image's top level as inspect lists it, counted from the top: \"#1\" is the top one), or its whole name when no other layer has it; the active layer by default.",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-index": "#",
      "x-khp-index-order": "reversed",
      "x-khp-name": "name",
      "x-khp-types": [
        "Layer"
      ]
    },
    "noiseColor": {
      "default": 0,
      "description": "0 to 100",
      "type": "integer"
    },
    "noiseColorDetail": {
      "default": 50,
      "description": "0 to 100",
      "type": "integer"
    },
    "noiseLuminance": {
      "default": 0,
      "description": "0 to 100",
      "type": "integer"
    },
    "noiseLuminanceDetail": {
      "default": 50,
      "description": "0 to 100",
      "type": "integer"
    },
    "pointCurve": {
      "items": {
        "description": "[in, out]",
        "items": {
          "type": "number"
        },
        "type": "array"
      },
      "type": "array"
    },
    "pointCurveBlue": {
      "items": {
        "description": "[in, out]",
        "items": {
          "type": "number"
        },
        "type": "array"
      },
      "type": "array"
    },
    "pointCurveGreen": {
      "items": {
        "description": "[in, out]",
        "items": {
          "type": "number"
        },
        "type": "array"
      },
      "type": "array"
    },
    "pointCurveRed": {
      "items": {
        "description": "[in, out]",
        "items": {
          "type": "number"
        },
        "type": "array"
      },
      "type": "array"
    },
    "region": {
      "description": "Where the command acts, for this call only: {\"rect\": [x, y, width, height]}, {\"ellipse\": [x, y, width, height]}, {\"polygon\": [[x, y], …]} (3 points or more), {\"layer\": id} (that layer's pixels, by their opacity), {\"channel\": name or index} (a saved selection or alpha channel), or \"all\"; add \"invert\": true to take everything else. Without it, inside the current selection (made with select.* earlier in the run), or everywhere when there is none.",
      "properties": {
        "channel": {
          "x-khp-name": "name",
          "x-khp-role": "object",
          "x-khp-types": [
            "Channel"
          ]
        }
      }
    },
    "saturation": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "seed": {
      "default": 0,
      "type": "integer"
    },
    "shadows": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "sharpenAmount": {
      "default": 0,
      "description": "0 to 150",
      "type": "integer"
    },
    "sharpenDetail": {
      "default": 25,
      "description": "0 to 100",
      "type": "integer"
    },
    "sharpenMasking": {
      "default": 0,
      "description": "0 to 100",
      "type": "integer"
    },
    "sharpenRadius": {
      "default": 1,
      "description": "0.5 to 3",
      "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"
        }
      ]
    },
    "temperature": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "texture": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "tint": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "vibrance": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "vignetteAmount": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "vignetteFeather": {
      "default": 50,
      "description": "0 to 100",
      "type": "integer"
    },
    "vignetteHighlights": {
      "default": 0,
      "description": "0 to 100",
      "type": "integer"
    },
    "vignetteMidpoint": {
      "default": 50,
      "description": "0 to 100",
      "type": "integer"
    },
    "vignetteRoundness": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    },
    "vignetteStyle": {
      "enum": [
        "highlightPriority",
        "colorPriority",
        "paintOverlay"
      ],
      "type": "string"
    },
    "whites": {
      "default": 0,
      "description": "-100 to 100",
      "type": "integer"
    }
  },
  "type": "object",
  "x-khp-position": "independent"
}

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.