SuperAPI AI 工具集

gifgrep

设计与创作

查看项目

更新于 10-16 00:00

技能介绍

用途:gifgrep 用于搜索 GIF、在终端浏览预览、下载结果,并从动图中提取静帧或帧网格图,便于快速查看与分享。流程为搜索→预览→下载→提取。

主要能力:支持 Tenor/Giphy 提供方(--source auto|tenor|giphy,giphy 需 GIPHY_API_KEY,Tenor 未设 API 时使用演示密钥);TUI 浏览(gifgrep tui "query");CLI 静帧预览 --thumbs(仅 Kitty/Ghostty,显示静帧);下载保存到 ~/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 调整;输出支持 --json 数组(id、title、url、preview_url、tags、width、height)与 --format 便于管道处理。

使用方式示例:gifgrep cats --max 5;gifgrep cats --format url | head -n 5;gifgrep search --json cats | jq '.[0].url';gifgrep cats --download --max 1 --format url。环境变量:GIFGREP_SOFTWARE_ANIM=1 强制软件动画,GIFGREP_CELL_ASPECT=0.5 调整预览几何。

适用场景:命令行快速检索与批量下载 GIF、终端内预览挑选、为文档、PR 或聊天生成便于查看的帧网格图。

限制:帧预览 --thumbs 仅限 Kitty/Ghostty;Giphy 需 API key,Tenor 未配置时使用演示密钥;其余平台信息、安装方式、收费与价格资料暂未提供。