unityaisolutions/gif-compressor 🖼️🔢✓ → 🖼️
About
Compress GIF files without losing all that juicy quality.
Example Output
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)
- Input GIF file to compress
- scale
- Scale factor (0.1-1.0). Leave empty to keep original size.
- colors
- Reduce to this many colors (2-256). Leave empty to keep original colors.
- unoptimize
- Unoptimize before compressing (useful for already-optimized GIFs)
- resize_width
- Resize to this width in pixels (maintains aspect ratio). Overrides scale.
- resize_height
- Resize to this height in pixels (maintains aspect ratio). Overrides scale.
- lossy_compression
- Lossy compression level (20-200). Lower = better quality. 80 is a good balance. Leave empty for lossless.
- optimization_level
- Optimization level (1-3). Higher = better compression but slower. 3 is recommended.
Output Schema
Output
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