Vector kit command
image.info
Image Info
Answers an image object's link, colour mode, pixel size, resolution and placed size.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
- Acts on
id(one id), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
dxf | object | no | read by the command beside its listed parameters |
id | integer | no | object ID |
link | boolean | no | read by the command beside its listed parameters |
page | integer | no | read by the command beside its listed parameters |
thumbnail | number | no | read by the command beside its listed parameters |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "image.info" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: dxf, id, link, page, thumbnail. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
colorMode | any | no | |
height | any | no | |
id | any | no | |
link | any | no | |
linked | any | no | |
name | any | no | |
pixelHeight | any | no | |
pixelWidth | any | no | |
ppi | any[] | no | |
width | any | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"colorMode": {},
"height": {},
"id": {},
"link": {},
"linked": {},
"name": {},
"pixelHeight": {},
"pixelWidth": {},
"ppi": {
"type": "array"
},
"width": {}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"dxf": {
"additionalProperties": true,
"description": "read by the command beside its listed parameters",
"type": "object"
},
"id": {
"description": "object ID",
"type": "integer",
"x-khp-types": [
"Node"
]
},
"link": {
"description": "read by the command beside its listed parameters",
"type": "boolean"
},
"page": {
"description": "read by the command beside its listed parameters",
"type": "integer"
},
"thumbnail": {
"description": "read by the command beside its listed parameters",
"type": "number"
}
},
"returns": "{id, name, linked, link, colorMode: RGB|Grayscale|CMYK, pixelWidth, pixelHeight, ppi: [x, y] at its placed size, 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.