# spatie/laravel-image-optimizer

> Optimizes PNG, JPG, SVG and GIF images inside Laravel applications

Navigation: [Developer Tools](category/developer-tools.txt) · [Index](../llms.txt)

## Facts

- GitHub: https://github.com/spatie/laravel-image-optimizer
- HTML: https://awesomeopensource.dev/project/spatie-laravel-image-optimizer
- Website: https://spatie.be/opensource/laravel
- License: MIT
- Language: PHP
- stars: 1307
- Topics: image, laravel, optimize, performance, php
- Activity score: 3.5/5 (Active)
- Last commit (any branch): 2026-11-05
- Last release: 1.8.3 2026-02-21

## Description

The package wires spatie/image-optimizer into Laravel so images can be optimized through a facade, a resolved OptimizerChain or a middleware that handles images in a request. It runs files through a chain of optimization binaries, detects which tools are installed on the machine and replaces the original with a smaller version. PNG, JPG, SVG and GIF are supported, and it requires Laravel 6.0 or newer.

## Maintenance activity

- Recency: 94% (weight 40%) — last commit: 8 days ago
- Commit volume: 44% (weight 25%)
- Releases: 36% (weight 25%) — last release: 265 days ago
- Bug fixes: 54% (weight 10%)
- Commits: 2 / 90d, 19 / 365d

## Similar projects

- [stablyai/orca](stablyai-orca.md): Run several coding agents in parallel, each in its own Git worktree · Activity score 5.0/5 (Thriving)
- [tauri-apps/tauri](tauri-apps-tauri.md): Build small desktop and mobile apps with a web frontend and a Rust core · Activity score 5.0/5 (Thriving)
- [microsoft/terminal](microsoft-terminal.md): Tabs, panes and GPU rendering for PowerShell, cmd, WSL and SSH on Windows · Activity score 5.0/5 (Thriving)
- [ant-design/ant-design](ant-design-ant-design.md): A UI Design Language. · Activity score 5.0/5 (Thriving)
- [microsoft/playwright](microsoft-playwright.md): End-to-end testing and browser automation across Chromium, Firefox and WebKit · Activity score 5.0/5 (Thriving)
- [nvm-sh/nvm](nvm-sh-nvm.md): POSIX shell script for installing and switching between Node.js versions · Activity score 5.0/5 (Thriving)
