---
title: "clipboard.exportPng: Clipboard as PNG — Vector kit command — Kition"
description: "Answers the clipboard's objects as a PNG cropped to their visual bounds with a transparent background, at scale pixels per point."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/clipboard.exportPng"
---

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

# clipboard.exportPng

**Clipboard as PNG.** Answers the clipboard's objects as a PNG cropped to their visual bounds with a transparent background, at scale pixels per point.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `scale` | `integer` | no | pixels per point, up to 64 |

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "clipboard.exportPng" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `scale`. vector_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `dataBase64` | `any` | no |  |
| `height` | `any` | no |  |
| `width` | `any` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "dataBase64": {},
    "height": {},
    "width": {}
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "scale": {
      "default": 1,
      "description": "pixels per point, up to 64",
      "type": "integer"
    }
  },
  "returns": "{dataBase64, width, height (px)} the copied objects cropped to their visual bounds, transparent around them (dataBase64 null when the clipboard is empty)",
  "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).
