Gifsicle
$ gifsicle Community Low Riskgifsicle creates, edits, crops, resizes, extracts frames from, and optimizes animated GIFs without bloated FFmpeg pipelines. Its --info (-I) flag prints frame counts, delays, and dimensions cleanly, while -O3 and --lossy shrink GIF files dramatically.
brew install gifsicle Animated GIF frame inspection (gifsicle --info) and -O3 optimization are lightweight local shell steps.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic non-interactive CLI with read-only --info and --help, though lacks JSON output and --dry-run.
--infoinspects animated GIFs without side effects- No JSON output or
--dry-run
Leaves inputs untouched when -o <output> is used, though --batch mutates in-place and omitting -o emits binary bytes to stdout.
- Non-destructive with
-o;--batchmutates in-place
Zero-dependency C binary available across Homebrew, apt/dnf, and Windows.
- Available via
brew install gifsicleand standard Linux packages
Best-in-class animated GIF size reduction (-O3 --lossy) and frame-level surgery (#0-5, --delay).
- Supports frame slicing, delay adjustment, resizing, and
-O3optimization
Long-maintained by Eddie Kohler (kohler/gifsicle) with stable releases.
- Maintained at
kohler/gifsicleon GitHub
Complete HTML man page and --help, though frame-selection syntax (#0-10) is domain-specific.
- Full manual at lcdf.org/gifsicle/man.html
Security, Auth & Guardrails
None required; operates on local GIF files or stdio.
Free GPL-2.0 open-source C binary.
# Gifsicle Agent Rules - Always write to `-o <out.gif>` rather than passing `--batch` (`-b`), which modifies GIFs in place. - Note that without `-o`, `gifsicle` writes raw binary GIF data to stdout unless `--info` is set.
Agent-Ready Command Recipes
Safe Read-Only Queries
gifsicle --info demo.gif
Lists logical screen dimensions, loop count, and per-frame timing without writing files.
Controlled Writes & Previews
gifsicle -O3 --lossy=80 input.gif -o optimized.gif
Applies level-3 lossless transparency optimization plus lossy LZW compression into optimized.gif.
Strengths for Agents
- +
gifsicle --inforeports exact frame timings, color tables, and dimensions cleanly. - +
-O3 --lossy=80shrinks terminal recordings and demo GIFs substantially.
Caveats & Pitfalls
- ! Omitting
-odumps binary GIF bytes to stdout unless--infois passed. - !
--batchoverwrites input files in place; prefer explicit-o out.gif.