- Home
- Skills
- Isjiamu
- Jiamu Skills
- Gif Splitter
gif-splitter_skill
- Python
35
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill isjiamu/jiamu-skills --skill gif-splitter- SKILL.md4.0 KB
Overview
This skill automatically splits GIF animations that exceed a specified frame limit into multiple smaller GIF files. It is designed to solve platform frame-limit issues (for example, public account uploads) while preserving frame timing and loop settings. Outputs are written to a split_output directory by default.
How this skill works
The script reads a GIF with Pillow, counts frames and extracts per-frame durations. It computes how many output files are needed based on the max-frames setting, distributes frames evenly to avoid tiny final parts, and writes each segment as an optimized GIF preserving original frame durations and loop behavior. Options allow inspecting info only, customizing max frames, and changing the output folder.
When to use it
- Uploading GIFs that exceed a platform frame limit (e.g., 300 frames)
- Preparing GIFs for platforms with file-size or frame-count restrictions
- Splitting a large GIF into evenly sized parts for progressive publishing
- Verifying GIF frame count and basic metadata without modifying files
Best practices
- Set --max-frames slightly below the platform limit to allow safe margin (default 280 for a 300-frame limit)
- Run with --info first to inspect frame count and estimated sizes before splitting
- Group frames evenly to avoid very small last segments and to maintain consistent playback
- Adjust output directory with -o to keep original files organized
- If output files grow larger, increase --max-frames to reduce the number of independent palettes
Example use cases
- Fixing "frame count exceeded" errors when uploading to public account editors
- Splitting a 700+ frame GIF into three balanced parts for sequential posting
- Batch-processing a folder of GIFs to meet a platform's frame policy
- Quickly checking a GIF’s frame count, resolution, and size before publishing
FAQ
The tool preserves each frame’s duration, so animation speed should remain unchanged; speed differences indicate missing or inconsistent duration metadata in the original GIF.
Why are split files sometimes larger than the original?
Each output GIF needs its own color palette and metadata, which can reduce inter-frame compression and increase size; reducing split count by raising --max-frames can help.