[comment]: # aside: 1

[comment]: # ({b01f8696-e9ddc4ef})
# 图像对象

以下对象与 `image` API 直接相关。

[comment]: # ({/b01f8696-e9ddc4ef})

[comment]: # ({40111e0a-eee50efa})
### 图像

图像对象具有以下属性。

|属性|[类型](/manual/api/reference_commentary#data-types)|描述|
|--|--|------|
|imageid|ID|图像的 ID。<br><br>[属性行为](/manual/api/reference_commentary#property-behavior)：<br>- *只读*<br>- 更新操作时 *必填*|
|name|string|图像名称。<br><br>[属性行为](/manual/api/reference_commentary#property-behavior)：<br>- 创建操作时 *必填*|
|imagetype|integer|图像类型。<br><br>可能的值：<br>1 - *（默认）* 图标；<br>2 - 背景图像。<br><br>[属性行为](/manual/api/reference_commentary#property-behavior)：<br>- *常量*<br>- 创建操作时 *必填*|
|image|string|Base64 编码的图像。<br>编码后图像的最大大小为 1 MB。可通过修改 `ZBX_MAX_IMAGE_SIZE` 常量值来调整最大大小。<br>支持的图像格式：PNG、JPEG、GIF 和 WebP。<br><br>[属性行为](/manual/api/reference_commentary#property-behavior)：<br>- 创建操作时 *必填*|

[comment]: # ({/40111e0a-eee50efa})
