获取图片元信息
image_get_metadataRetrieve image attributes and metadata—width, height, format, color space, DPI, alpha channel, EXIF orientation—from a local path or URL.
Instructions
获取图片的重要属性和元信息。
返回图片的宽度、高度、格式、通道数、色彩空间、DPI、是否有Alpha通道、EXIF方向等。
参数:
image: 图片路径或URL
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | 图片路径或URL(http/https开头为URL,否则为本地路径) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| depth | Yes | ||
| pages | No | ||
| space | Yes | ||
| width | Yes | ||
| format | Yes | ||
| height | Yes | ||
| density | No | ||
| channels | Yes | ||
| hasAlpha | Yes | ||
| mimeType | Yes | ||
| hasProfile | Yes | ||
| orientation | No | ||
| isProgressive | Yes |