---
title: "object.rasterize: Rasterize… — Vector kit command — Kition"
description: "Replaces the selected objects with an embedded raster image at a resolution, background, anti-aliasing and colour model."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/object.rasterize"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/object.rasterize](https://developer.kition.ai/docs/kits/vector/commands/object.rasterize)

# 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); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `addAround` | `number` | no | points; 0–1000; one of several alternative parameters |
| `antiAlias` | `"none" \| "art" \| "type" \| boolean` | no |  |
| `background` | `string` | no |  |
| `clippingMask` | `boolean` | no | a clip group with the art's outline |
| `colorModel` | `"rgb" \| "cmyk" \| "grayscale" \| "bitmap"` | no |  |
| `padding` | `number` | no | points; 0–1000; one of several alternative parameters |
| `ppi` | `number` | no |  |

## 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/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
