SuperAPI AI 工具集

gifgrep

设计与创作

查看项目

更新于 10-16 09:59

技能介绍

gifgrep 是一个 GIF 搜索与处理工具,提供 CLI 和 TUI 两种交互方式,工作流为搜索 → 预览 → 下载 → 提取静帧或拼图。

主要能力:

  • 搜索 GIF 提供方(Tenor/Giphy):gifgrep cats --max 5
  • 以 JSON 或字段格式输出,便于管道处理:gifgrep search --json cats | jq '.[0].url';gifgrep cats --format url | head -n 5
  • TUI 浏览:gifgrep tui "office handshake"
  • 下载与揭示:gifgrep cats --download --max 1 --format url;--download 保存到 ~/Downloads,--reveal 在 Finder 中显示最近下载
  • 提取静帧:gifgrep still ./clip.gif --at 1.5s -o still.png
  • 提取图格拼图:gifgrep sheet ./clip.gif --frames 9 --cols 3 -o sheet.png;可调 --frames、--cols、--padding
  • 输出字段包含 id、title、url、preview_url、tags、width、height

来源与密钥:--source auto|tenor|giphy;使用 giphy 需 GIPHY_API_KEY;Tenor 的 TENOR_API_KEY 可选,未设置时使用演示密钥。

环境变量:GIFGREP_SOFTWARE_ANIM=1 强制软件动画;GIFGREP_CELL_ASPECT=0.5 调整预览几何。CLI 静帧预览 --thumbs 仅在 Kitty/Ghostty 终端可用。

适用场景:快速查找与评审 GIF、为文档或 PR 生成缩略图拼图、脚本中批量获取 GIF 链接。

限制:需要可用的终端环境;具体安装方式与价格资料暂未提供。