Vector kit command

object.rasterize

Rasterize…

Replaces the selected objects with an embedded raster image at a resolution, background, anti-aliasing and colour model.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of object.rasterize
NameTypeRequiredDescription
addAroundnumbernopoints; 0–1000; one of several alternative parameters
antiAlias"none" | "art" | "type" | booleanno
backgroundstringno
clippingMaskbooleannoa clip group with the art's outline
colorModel"rgb" | "cmyk" | "grayscale" | "bitmap"no
paddingnumbernopoints; 0–1000; one of several alternative parameters
ppinumberno

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "object.rasterize" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: addAround, antiAlias, background, clippingMask, colorModel, padding, ppi. vector_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": {
    "addAround": {
      "description": "points; 0–1000; one of several alternative parameters",
      "type": "number"
    },
    "antiAlias": {
      "oneOf": [
        {
          "enum": [
            "none",
            "art",
            "type"
          ],
          "type": "string"
        },
        {
          "type": "boolean"
        }
      ]
    },
    "background": {
      "type": "string"
    },
    "clippingMask": {
      "description": "a clip group with the art's outline",
      "type": "boolean"
    },
    "colorModel": {
      "enum": [
        "rgb",
        "cmyk",
        "grayscale",
        "bitmap"
      ],
      "type": "string"
    },
    "padding": {
      "description": "points; 0–1000; one of several alternative parameters",
      "type": "number"
    },
    "ppi": {
      "type": "number"
    }
  },
  "returns": "{id (the image, or its clip group), width, height}",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.