# spatie/image-optimizer

> PHP package that shrinks PNG, JPEG, WebP, AVIF, SVG and GIF images

Navigation: [Media & Entertainment](category/media.txt) · [Index](../llms.txt)

## Facts

- GitHub: https://github.com/spatie/image-optimizer
- HTML: https://awesomeopensource.dev/project/spatie-image-optimizer
- Website: https://freek.dev/797-easily-optimize-images-using-php-and-some-binaries
- License: MIT
- Language: PHP
- stars: 2883
- Topics: gif, image, jpeg, optimizer, performance, php, png
- Activity score: 4.4/5 (Active)
- Last commit (any branch): 2026-11-05
- Last release: 1.10.1 2026-11-04

## Description

Spatie Image Optimizer runs images through a chain of installed command-line optimizers and overwrites them with smaller versions. It detects which binaries are present and applies per-format tools, reducing file weight without changing image dimensions. The package accepts a custom optimizer chain and has separate integrations for Laravel, WordPress and SilverStripe.

## Maintenance activity

- Recency: 94% (weight 40%) — last commit: 8 days ago
- Commit volume: 64% (weight 25%)
- Releases: 90% (weight 25%) — last release: 9 days ago
- Bug fixes: 90% (weight 10%)
- Commits: 7 / 90d, 27 / 365d

## Similar projects

- [videojs/video.js](videojs-video-js.md): Media player framework for the web and React, with skins and HLS playback. · Activity score 5.0/5 (Thriving)
- [CapSoftware/Cap](capsoftware-cap.md): Open source Loom alternative for shareable screen recordings with local editing. · Activity score 5.0/5 (Thriving)
- [livekit/livekit](livekit-livekit.md): Scalable WebRTC SFU for voice, video and AI agents, with SDKs and egress. · Activity score 5.0/5 (Thriving)
- [Chocobozzz/PeerTube](chocobozzz-peertube.md): Federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular. · Activity score 5.0/5 (Thriving)
- [Stremio/stremio-web](stremio-stremio-web.md): Web interface for the Stremio media center with addon catalogs, casting and subtitles · Activity score 5.0/5 (Thriving)
- [streamlink/streamlink](streamlink-streamlink.md): Command-line tool that pipes streams from video services into a local player · Activity score 5.0/5 (Thriving)
