GIF Compressor

v0.1.0
cc.gifcompressor/gif-compressor Checked 1 day ago Published 2 days ago

Inspect and compress local GIF files privately without uploading them.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

inspect_gif Inspect GIF

Inspect a local GIF file and return its size, dimensions, frame count, and animation status.

ParameterTypeDescription
input_path *stringAbsolute or working-directory-relative path to a GIF file.

compress_gif Compress GIF

Compress a local GIF privately with Gifsicle. Supports presets, custom settings, and a target size.

ParameterTypeDescription
input_path *stringAbsolute or working-directory-relative path to a GIF file.
colorsintegerPalette size from 2 to 256 colors.
lossyintegerGifsicle lossy level from 0 to 200.
optimizeintegerGifsicle optimization level from 1 to 3.
output_pathstringOptional output GIF path. Defaults to <name>-compressed.gif beside the input.
overwritebooleanAllow replacing an existing output file. The input is never overwritten.
presetstringCompression preset.
scalenumberImage scale from 0.1 to 1.
target_mbnumberOptional target size in MB. The server progressively strengthens compression.

batch_compress_gifs Batch Compress GIFs

Compress up to 20 local GIF files into an output directory.

ParameterTypeDescription
input_paths *array
output_directory *string
overwriteboolean
presetstring
target_mbnumber