Photo kit command

image.mode.bitmap

Bitmap…

Converts a grayscale document to 1-bit black and white by threshold, pattern, diffusion dither or halftone screen (`method`, `frequency`, `angle`, `shape`).

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

Parameters

Parameters of image.mode.bitmap
NameTypeRequiredDescription
angleintegerno-180 to 180
coalescestringnoMerges consecutive edits with the same key into one undo step, as a slider drag or a typing session is one.
frequencyintegerno1 to 999
method"diffusion" | "threshold" | "pattern" | "halftone"no
shape"round" | "ellipse" | "line" | "square" | "diamond" | "cross"no

Call through photo_run

text
photo_run {
  "path": "<file>.psd",
  "steps": [{ "command": "image.mode.bitmap" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: angle, coalesce, frequency, method, shape. 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": {
    "angle": {
      "default": 45,
      "description": "-180 to 180",
      "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"
    },
    "frequency": {
      "default": 53,
      "description": "1 to 999",
      "type": "integer"
    },
    "method": {
      "default": "diffusion",
      "enum": [
        "diffusion",
        "threshold",
        "pattern",
        "halftone"
      ],
      "type": "string"
    },
    "shape": {
      "default": "round",
      "enum": [
        "round",
        "ellipse",
        "line",
        "square",
        "diamond",
        "cross"
      ],
      "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.