Table Image
by @joargp
Generate images from tables for better readability in messaging apps like Telegram. Use when displaying tabular data.
clawhub install table-imageπ About This Skill
name: table-image description: Generate images from tables for better readability in messaging apps like Telegram. Use when displaying tabular data. metadata: {"clawdis":{"emoji":"π"}}
Table Image Skill
Render markdown tables as PNG images for messaging platforms that don't support markdown tables.
Prerequisites
Install tablesnap:
go install github.com/joargp/tablesnap/cmd/tablesnap@latest
Or build from source:
git clone https://github.com/joargp/tablesnap.git
cd tablesnap
go build -o tablesnap ./cmd/tablesnap
Usage
echo "| Header 1 | Header 2 |
|----------|----------|
| Data 1 | Data 2 |" | tablesnap -o /tmp/table.png
Then send with MEDIA:/tmp/table.png
Options
| Flag | Default | Description |
|------|---------|-------------|
| -i | stdin | Input file |
| -o | stdout | Output file |
| --theme | dark | Theme: dark or light |
| --font-size | 14 | Font size in pixels |
| --padding | 10 | Cell padding in pixels |
Emoji Support
Bundled (work out of the box): β β π΄ π’ π‘ β β οΈ
Full emoji (one-time download):
tablesnap emojis install
Unsupported emoji render as β‘ until full set is installed.
Example Workflow
# Create table image
echo "| Task | Status |
|------|--------|
| Build | β
|
| Deploy | π |" | tablesnap -o /tmp/table.pngSend in reply
MEDIA:/tmp/table.png
Notes
Links
π‘ Examples
echo "| Header 1 | Header 2 |
|----------|----------|
| Data 1 | Data 2 |" | tablesnap -o /tmp/table.png
Then send with MEDIA:/tmp/table.png
βοΈ Configuration
| Flag | Default | Description |
|------|---------|-------------|
| -i | stdin | Input file |
| -o | stdout | Output file |
| --theme | dark | Theme: dark or light |
| --font-size | 14 | Font size in pixels |
| --padding | 10 | Cell padding in pixels |