gif-maker
Original:🇨🇳 Chinese
Translated
2 scripts
Convert sequence frame images or Sprite Sheets into high-quality GIF animations. Supports custom FPS, layout splitting, and loop playback.
3installs
Sourceguanyang/super-publisher
Added on
NPX Install
npx skill4agent add guanyang/super-publisher gif-makerTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →GIF Maker
This Skill is designed to help users quickly convert a set of sequence frame images or a single Sprite Sheet into a GIF animation.
Core Features
- Sequence Frames to GIF: Supports reading png, jpg sequences in a folder, sorting them by file name and combining into a GIF.
- Sprite Sheet to GIF: Supports reading a single Grid image (e.g., 4x4 Sprite Sheet), automatically splitting it and combining into a GIF.
- Smart Compression: Supports specifying the target file size (e.g., 950KB) via the parameter, automatically adjusting compression parameters to meet size limits of platforms like WeChat stickers.
--max-size - Parameter Control:
- : Specify frames per second (default is 12).
--fps - : Specify the Sprite Sheet layout (e.g.,
--layout), only required in this mode.4x4 - : Loops infinitely by default.
--loop - : Specify maximum file size (KB).
--max-size
Usage Guide
1. Quick Start
No need to manually install dependencies; just run the script directly. The tool will automatically create a virtual environment () and install the required dependencies.
.venvbash
# Basic Usage 1: Read sequence frames from a folder
./skills/gif-maker/scripts/run.sh /path/to/frame_folder --output my_anim.gif
# Basic Usage 2: Generate from a single Sprite Sheet (layout required)
./skills/gif-maker/scripts/run.sh /path/to/sheet.png --layout 4x4 --output my_sheet_anim.gif
# Common Options:
# - Specify FPS (e.g., 24)
./skills/gif-maker/scripts/run.sh /path/to/folder --fps 24
# - Enable auto-compression (limit file size to 950KB)
./skills/gif-maker/scripts/run.sh /path/to/folder --max-size 9502. (Optional) Manual Installation
If you prefer to manage the environment manually (Note: The compression feature depends on the tool; please ensure it is installed on your system):
gifsicle- macOS:
brew install gifsicle - Ubuntu:
sudo apt-get install gifsicle
bash
python3 -m venv skills/gif-maker/.venv
source skills/gif-maker/.venv/bin/activate
pip install -r skills/gif-maker/requirements.txt
python3 skills/gif-maker/scripts/make_gif.py ...Parameter Description
- : Input path. Can be a folder containing images or a single image file.
source - (
--output): Output GIF file name, default is-o.output.gif - : Frames per second, default is 12.
--fps - : Only used when
--layoutis a single file, format issource(e.g.,rowsxcolumns).4x4 - : (Optional) Enable GIF compression, specify the maximum target file size (KB). Compression is only attempted if the original file exceeds this size.
--max-size
Examples
Suppose you have a folder containing , ... :
frames/01.png02.png10.pngbash
./skills/gif-maker/scripts/run.sh frames/ -o animation.gif --fps 15Suppose you have a which is a 4x4 action sequence, and you need to generate a GIF that meets WeChat sticker specifications (<1MB):
sheet.pngbash
./skills/gif-maker/scripts/run.sh sheet.png --layout 4x4 -o action.gif --max-size 950