Skip to content

Repository files navigation

@solithix/optimize

Interactive CLI for optimizing GIFs, videos, and images for the web.

Install

npx @solithix/optimize

Or install globally:

npm install -g @solithix/optimize

What it does

A step-by-step wizard that walks you through:

  1. Dependency check -- verifies ffmpeg is available
  2. File selection -- scans for media files (videos, images, GIFs)
  3. Options -- pick quality presets, output formats, and resolution
  4. Processing -- optimizes files with progress tracking
  5. Summary -- shows results with file size savings

Supported formats

TypeInputOutput
VideoMP4, MOV, AVI, MKV, WebMH.264 MP4, VP9 WebM
ImageJPEG, PNG, WebP, TIFF, AVIFWebP, JPEG, PNG
GIFGIFOptimized GIF, MP4, WebM

Features

  • 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

Requirements

  • Node.js >= 18
  • ffmpeg (bundled fallback included via @ffmpeg-installer/ffmpeg)

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages