GIF搜索工具Skill gifgrep

gifgrep是一个高效的命令行工具,专为搜索和处理GIF图像设计。它支持从Tenor和Giphy等提供商搜索GIF,提供TUI界面浏览,可下载GIF文件,并提取静止帧或帧序列图,适用于快速查看、内容创作和图像处理场景。关键词:GIF搜索、命令行工具、TUI、GIF下载、图像提取、SEO。

DevOps 0 次安装 0 次浏览 更新于 3/24/2026

name: gifgrep description: 使用CLI/TUI搜索GIF提供商,下载结果,并提取静止帧或帧序列图。 homepage: https://gifgrep.com metadata: { “otto”: { “emoji”: “🧲”, “requires”: { “bins”: [“gifgrep”] }, “install”: [ { “id”: “brew”, “kind”: “brew”, “formula”: “steipete/tap/gifgrep”, “bins”: [“gifgrep”], “label”: “安装 gifgrep (brew)”, }, { “id”: “go”, “kind”: “go”, “module”: “github.com/steipete/gifgrep/cmd/gifgrep@latest”, “bins”: [“gifgrep”], “label”: “安装 gifgrep (go)”, }, ], }, }

gifgrep

使用 gifgrep 来搜索GIF提供商(Tenor/Giphy),在TUI中浏览,下载结果,并提取静止帧或帧序列图。

GIF-Grab (gifgrep 工作流)

  • 搜索 → 预览 → 下载 → 提取(静止帧/帧序列图)用于快速查看和分享。

快速开始

  • 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

TUI + 预览

  • TUI: gifgrep tui "query"
  • CLI 静止预览: --thumbs (仅限Kitty/Ghostty;静止帧)

下载 + 显示

  • --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
  • 帧序列图 = 单个PNG网格的采样帧(适用于快速查看、文档、PR、聊天)。
  • 调整: --frames (帧数), --cols (网格宽度), --padding (间距)。

提供商

  • --source auto|tenor|giphy
  • GIPHY_API_KEY 对于 --source giphy 必需
  • TENOR_API_KEY 可选(如果未设置,使用Tenor演示密钥)

输出

  • --json 打印结果数组(id, title, url, preview_url, tags, width, height
  • --format 用于管道友好字段(例如,url

环境调整

  • GIFGREP_SOFTWARE_ANIM=1 强制软件动画
  • GIFGREP_CELL_ASPECT=0.5 调整预览几何