unityaisolutions/gif-compressor 🖼️🔢✓ → 🖼️

▶️ 10 runs 📅 Nov 2025 ⚙️ Cog 0.16.9
gif-compression image-optimization

About

Compress GIF files without losing all that juicy quality.

Example Output

Output

Example output

Performance Metrics

176.63s Prediction Time
185.48s Total Time
All Input Parameters
{
  "gif": "https://replicate.delivery/pbxt/O7lOG0uVlTuCCdGK3Q4aMcZv2ye0vbuT6RATb8UWUVj5CMu4/Copy%20of%20Case%20Slides%20Psychology%20%28Video%29.gif",
  "unoptimize": false,
  "lossy_compression": 80,
  "optimization_level": 3
}
Input Parameters
gif (required) Type: string
Input GIF file to compress
scale Type: numberRange: 0.1 - 1
Scale factor (0.1-1.0). Leave empty to keep original size.
colors Type: integerRange: 2 - 256
Reduce to this many colors (2-256). Leave empty to keep original colors.
unoptimize Type: booleanDefault: false
Unoptimize before compressing (useful for already-optimized GIFs)
resize_width Type: integerRange: 1 - ∞
Resize to this width in pixels (maintains aspect ratio). Overrides scale.
resize_height Type: integerRange: 1 - ∞
Resize to this height in pixels (maintains aspect ratio). Overrides scale.
lossy_compression Type: integerRange: 20 - 200
Lossy compression level (20-200). Lower = better quality. 80 is a good balance. Leave empty for lossless.
optimization_level Type: integerDefault: 3Range: 1 - 3
Optimization level (1-3). Higher = better compression but slower. 3 is recommended.
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
============================================================
GIF COMPRESSION STARTING
============================================================
📊 Input file: tmpdref_5h4Copy of Case Slides Psychology (Video).gif
📦 Input size: 73.80 MB
🎬 Frames: 399
📐 Dimensions: 1920x1080
🎨 Colors: 256
⚙️ Optimization level: 3
💥 Lossy compression: 80
🔧 Command: gifsicle -O3 --lossy=80 /tmp/tmpdref_5h4Copy of Case Slides Psychology (Video).gif -o /tmp/tmprz54jsf4/compressed.gif
============================================================
PROCESSING...
============================================================
gifsicle: warning: huge GIF, conserving memory (processing may take a while)
============================================================
COMPRESSION COMPLETE
============================================================
📦 Output size: 54.30 MB
💾 Size reduction: 26.4%
📉 Compression ratio: 1.36x
🎬 Output frames: 399
📐 Output dimensions: 1920x1080
🎨 Output colors: 256
✅ Success!
============================================================
Version Details
Version ID
e55535aeb612bfbd1f7732337ede3aab5d06a1df5554d1fd49c6d3700cddad93
Version Created
November 25, 2025
Run on Replicate →