GIF Compression Skill
Compress a GIF to a chosen byte budget while controlling dimensions, frames and visual quality.
What this skill does
Frame optimization
Merge held frames and reduce tiny changes while respecting the intended animation timing.
Size trade-offs
Adjust palette, lossy settings, dimensions and frame rate in a staged optimization ladder.
Budget report
Preserve the source and report input/output size, including already-compliant or unreachable-budget outcomes.
What to provide & what you get
- Input
- A GIF file, target byte budget and dimension constraints
- Expected output
- A smaller GIF with measured byte size and output dimensions
Community source
Upstream source
Open the upstream instructions at the fixed revision used for this resource. Review the source and its supporting files before installing.
Read upstream SKILL.md- Repository
- joeseesun/qiaomu-tiny-gif
- File
SKILL.md- Revision
99fb205ef641e53f318323821c626e63b5e5d5a1
Local package changes
- Added portable install, target-language and external-action boundaries; replaced fixed own-skill paths with SKILL_DIR.
- Omitted personal avatar, donation and subscription QR assets; authorship, repository attribution and licenses remain intact.
Installation
- Download and extract the ZIP. Keep each complete skill folder, including its supporting files. Do not copy only
SKILL.md. - Copy the skill folder into your agent's skills directory. Use the project path below for this project, or the personal path for all your projects.
Codex
- This project
.agents/skills/qiaomu-tiny-gif/SKILL.md- All your projects
~/.agents/skills/qiaomu-tiny-gif/SKILL.md
Claude Code
- This project
.claude/skills/qiaomu-tiny-gif/SKILL.md- All your projects
~/.claude/skills/qiaomu-tiny-gif/SKILL.md
- Check the final path. It must match one of the paths above, with one
qiaomu-tiny-gif/folder directly underskills/. Avoid an extra ZIP-name folder around it. - Start a new task in your project. Use the matching example below to invoke the installed skill. If it is missing, recheck the folder name and reopen your agent.
Before the first run
- Python 3 and Pillow 9.1+
- Optional gifsicle for lossy compression
The ZIP installs the skill instructions and bundled files. Any listed software, accounts or external tools need their own setup.
What's in the download
15 files across 1 skill folder. Includes qiaomu-tiny-gif/SKILL.md and supporting directories:
agents/evals/references/reports/scripts/
File integrity (SHA256):
f72c13fa69d151e2c4a01ec09dee47818bfb80727d6cb65a66da44aee2224d59How to use
- Set up Python and Pillow, with gifsicle when the selected optimization path needs it.
- Provide a GIF, maximum byte size and any width, frame-count or frame-rate limits.
- Compare the exported GIF visually and review its timing, dimensions and reported file size.
Try it in your agent
Install first, then attach or provide the inputs described above. Replace any bracketed placeholders before running.
Codex
Use $qiaomu-tiny-gif. Compress this GIF below my target byte size, preserve the original and report the actual output dimensions and file size.
Claude Code
/qiaomu-tiny-gif Compress this GIF below my target byte size, preserve the original and report the actual output dimensions and file size.
Check the result: This resource optimizes GIF input into GIF output. A requested byte budget may be impossible without unacceptable quality loss.
Local helper check · 2026-10-18
A smaller GIF, with measured output
The bundled helper reduced a synthetic 640 × 360 GIF from 16,221 bytes to 12,151 bytes at 320 × 180. Both files are retained below.
This exercised the local compression helper on one synthetic input. It did not test a complete agent invocation, animation quality across other inputs or every compression preset.
Keep in mind
- Upstream instructions include Chinese references. Ask for your intended output language explicitly.
