gifgrep
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegifgrep
gifgrep
Use to search GIF providers (Tenor/Giphy), browse in a TUI, download results, and extract stills or sheets.
gifgrepGIF-Grab (gifgrep workflow)
- Search → preview → download → extract (still/sheet) for fast review and sharing.
Quick start
gifgrep cats --max 5gifgrep cats --format url | head -n 5gifgrep search --json cats | jq '.[0].url'gifgrep tui "office handshake"gifgrep cats --download --max 1 --format url
TUI + previews
- TUI:
gifgrep tui "query" - CLI still previews: (Kitty/Ghostty only; still frame)
--thumbs
Download + reveal
- saves to
--download~/Downloads - shows the last download in Finder
--reveal
Stills + sheets
gifgrep still ./clip.gif --at 1.5s -o still.pnggifgrep sheet ./clip.gif --frames 9 --cols 3 -o sheet.png- Sheets = single PNG grid of sampled frames (great for quick review, docs, PRs, chat).
- Tune: (count),
--frames(grid width),--cols(spacing).--padding
Providers
--source auto|tenor|giphy- required for
GIPHY_API_KEY--source giphy - optional (Tenor demo key used if unset)
TENOR_API_KEY
Output
- prints an array of results (
--json,id,title,url,preview_url,tags,width)height - for pipe-friendly fields (e.g.,
--format)url
Environment tweaks
- to force software animation
GIFGREP_SOFTWARE_ANIM=1 - to tweak preview geometry
GIFGREP_CELL_ASPECT=0.5
使用搜索GIF提供商(Tenor/Giphy),在TUI中浏览结果,下载GIF并提取静帧或帧图。
gifgrepGIF抓取(gifgrep工作流)
- 搜索 → 预览 → 下载 → 提取(静帧/帧图),快速完成查看与分享。
快速开始
gifgrep cats --max 5gifgrep cats --format url | head -n 5gifgrep search --json cats | jq '.[0].url'gifgrep tui "office handshake"gifgrep cats --download --max 1 --format url
TUI + 预览
- TUI模式:
gifgrep tui "查询内容" - CLI静帧预览:(仅支持Kitty/Ghostty终端;显示静帧)
--thumbs
下载 + 打开
- 将文件保存至
--download~/Downloads - 在Finder中显示最后下载的文件
--reveal
静帧 + 帧图
gifgrep still ./clip.gif --at 1.5s -o still.pnggifgrep sheet ./clip.gif --frames 9 --cols 3 -o sheet.png- 帧图:将采样帧拼接成单张PNG网格(非常适合快速查看、文档、PR和聊天场景)。
- 自定义参数:(帧数)、
--frames(网格宽度)、--cols(间距)。--padding
提供商
--source auto|tenor|giphy- 使用时需要
--source giphyGIPHY_API_KEY - 为可选参数(未设置时将使用Tenor演示密钥)
TENOR_API_KEY
输出
- 打印结果数组(包含
--json、id、title、url、preview_url、tags、width)height - 输出便于管道处理的字段(例如
--format)url
环境变量配置
- 强制启用软件动画
GIFGREP_SOFTWARE_ANIM=1 - 调整预览几何比例
GIFGREP_CELL_ASPECT=0.5