viewimg ยท diff
v0.1.0 to v0.1.0
2 added, 0 removed. Audit A to A.
---
name: viewimg
description: Display an image in the terminal (view-only, no VLM). Renders the image as colorful block art with chafa, or opens it in a native window with `open` on macOS. Use when you or the agent want to SHOW an image to the user without analyzing it.
version: 0.1.0
---
# viewimg โ show an image (view-only)
Display an image in the terminal. **View-only โ never analyzes, never fires the VLM.**
Understanding is a separate, explicit step (`read_image` / `/readimg`).
## Usage
```bash
viewimg <image-file>... [--size WxH] [--open] [--no-color] [--help]
```
| Flag | Meaning |
|------|---------|
| `--size WxH` | chafa block size (default `60x30`) |
| `--open` | open **all** images together in **one** native window (uses `open -a Preview` on macOS) |
| `--no-color` | plain ASCII fallback (no ANSI color) |
+ | `--update` | pull the latest skill via git |
+ | `--selfcheck` | version, install dir, last update, chafa availability |
| `--help` | usage |
## Behavior
- **Default:** renders each image as ANSI block art directly in the terminal via `chafa`.
- **`--open`:** opens **all** images in **one** Preview window (tabs) via `open -a Preview` โ
no multiple windows, even across repeated calls (Preview reuses its window).
## Why view-only?
`read` and `viewimg` only **display**. Understanding is opt-in: use `read_image` (tool)
or `/readimg` (command) when you actually need the image's contents. This keeps display
instant and never spends tokens on an unrequested VLM call.
## Install
```bash
bash install.sh # creates ~/.local/bin/viewimg (Linux/macOS)
install.bat # Windows
```
Requires `chafa` (brew install chafa) for in-terminal rendering; `open` is built into macOS.