pixel_canvas_info
Get canvas dimensions, unique color count, transparency info, and top 16 most-used colors from a PNG file without rendering it.
Instructions
Report a canvas's dimensions and color palette without rendering it.
Returns JSON: {"canvas", "width", "height", "unique_colors", "has_transparency", "top_colors": [{"color", "count"}, ...]} with the up to 16 most-used colors (fully transparent pixels reported as 'transparent'). On failure returns "Error: ...".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |