360 Secure SkillHub
360 安全技能中心

Table Image

核心功能是借助tablesnap工具将Markdown表格转为PNG图片,支持明暗主题、字号、单元格边距等自定义配置,还可安装完整表情集优化渲染。典型场景为在Telegram、Discord等不支持Markdown表格的通讯平台展示结构化数据。输入为Markdown表格(支持标准输入或文件),输出为适配通讯场景的轻量PNG图片,可指定输出路径,便于直接发送。需先安装tablesnap工具。

h-mascot
h-mascot
热度 26.50
最近更新 2026-06-30 04:32:41
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ec-table-image
Metadata
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.png

# Send in reply
MEDIA:/tmp/table.png

Notes

  • Dark theme by default (matches Telegram/Discord dark mode)
  • Auto-sizes to fit content
  • Output ~10-20KB (messaging-friendly)
  • Cross-platform (Inter font embedded)

Links