Interactive CLI for optimizing GIFs, videos, and images for the web.
npx @solithix/optimizeOr install globally:
npm install -g @solithix/optimizeA step-by-step wizard that walks you through:
- Dependency check -- verifies ffmpeg is available
- File selection -- scans for media files (videos, images, GIFs)
- Options -- pick quality presets, output formats, and resolution
- Processing -- optimizes files with progress tracking
- Summary -- shows results with file size savings
| Type | Input | Output |
|---|---|---|
| Video | MP4, MOV, AVI, MKV, WebM | H.264 MP4, VP9 WebM |
| Image | JPEG, PNG, WebP, TIFF, AVIF | WebP, JPEG, PNG |
| GIF | GIF | Optimized GIF, MP4, WebM |
- CRF-based quality control for videos
- Resolution scaling (1080p, 720p, 480p)
- WebP conversion with quality presets for images
- Srcset generation for responsive images
- GIF optimization via palette-based encoding
- Poster frame extraction from videos
- Web-safe filename sanitization
- Node.js >= 18
- ffmpeg (bundled fallback included via
@ffmpeg-installer/ffmpeg)
MIT