pixoo_push_image
pixoo_push_imageLoad an image from a local path or HTTPS URL, resize it to fit the Pixoo LED grid with selectable fit and kernel modes, and push it to the display. Returns the resized image for verification.
Instructions
Load an image (absolute local path or https URL), resize it to fit the LED grid, and optionally push it to the display. Returns the downsampled result as an image content block so you see exactly what the display received. Nearest-neighbor kernel preserves pixel art; use lanczos3 or mitchell for photos.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Absolute local file path or https (not http) URL of the image to display. | |
| fit | No | Resize fit mode: contain (letterbox), cover (crop to fill), fill (stretch). | contain |
| kernel | No | Resize kernel: nearest for pixel art, lanczos3 for photos, mitchell for a balance. | nearest |
| push | No | Push the resized image to the device (default: true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pushed | Yes | True when the device acknowledged the push. | |
| previewData | No | Base64-encoded PNG preview of the downsampled 64×64 result (8× upscaled, 512px). | |
| previewMimeType | No | MIME type of the preview image. | |
| deviceState | No | Device state after the push. Absent when push: false. | |
| outputFiles | No | Absolute paths to saved PNG preview files. Present only when PIXOO_OUTPUT_DIR is configured. | |
| notice | No | Warning or informational message. |