SuperAPI AI 工具集

gifgrep

通用与其它

查看项目

更新于 10-16 00:04

技能介绍

用途:gifgrep 面向在终端里检索、预览、下载和加工 GIF 的场景,工作流为搜索 → 预览 → 下载 → 提取(静帧/帧网格)。

主要能力:可搜索 Tenor/Giphy 的 GIF;提供 TUI 浏览;支持下载结果并在 Finder 中显示;可将 GIF 导出为静帧或采样帧网格 PNG(适合审阅、文档、PR、聊天)。

用法示例: gifgrep cats --max 5 gifgrep cats --format url | head -n 5 gifgrep search --json cats | jq '.[0].url' gifgrep tui "office handshake" gifgrep cats --download --max 1 --format url gifgrep still ./clip.gif --at 1.5s -o still.png gifgrep sheet ./clip.gif --frames 9 --cols 3 -o sheet.png

输出与选项:--json 打印结果数组(id、title、url、preview_url、tags、width、height);--format 输出便于管道处理的字段(如 url)。TUI 使用 gifgrep tui "query";CLI 静帧预览需 --thumbs(仅 Kitty/Ghostty,显示静帧)。--download 保存到 ~/Downloads;--reveal 在 Finder 中显示最近下载。帧网格可调 --frames(数量)、--cols(网格宽度)、--padding(间距)。

提供方:--source auto|tenor|giphy;--source giphy 需 GIPHY_API_KEY;TENOR_API_KEY 可选,未设置时使用 Tenor 演示密钥。

环境变量:GIFGREP_SOFTWARE_ANIM=1 强制软件动画;GIFGREP_CELL_ASPECT=0.5 调整预览几何。

限制:仍仅限资料所述功能;具体平台支持、完整错误处理及安装细节暂未提供。