spatie/laravel-image-optimizer
Optimize images in your Laravel app observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 96
- Release rhythm 39
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 182.5
- age_days: 3344
- days_rel: 193
- days_push: 26
- n_releases_24m: 3
Adoption not part of the score
1309 stars · 117 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Laravel package that optimizes PNG, JPG, SVG, and GIF images by running them through a chain of installed optimization binaries. It is the Laravel integration of spatie/image-optimizer and includes a facade, container binding, and middleware for automatic optimization.
Use cases
- optimize images in a laravel app
- compress pngs and jpgs on upload
- reduce image file sizes for faster page loads
- automatically optimize images served via middleware
- shrink svg and gif files in php
- integrate image optimization into laravel media uploads
When to choose
- you use Laravel and want drop-in image optimization
- you want to leverage system-installed optimizers like pngquant or jpegoptim
- you need automatic optimization of request/response images via middleware
When to avoid
- you are not using Laravel - use spatie/image-optimizer directly
- you need pure-PHP optimization without external binaries
- you need advanced image manipulation like resizing or cropping - use spatie/image instead
Facets
library · maturity stable
image-processing middleware developer-tools image-processing web-development performance php laravel-package image-optimization spatie compression png jpeg svg gif laravel web-server
4 sources
- readme: https://github.com/spatie/laravel-image-optimizer · fetched 2026-08-28 · 3577869ac6f1
- homepage: https://spatie.be/opensource/laravel · fetched 2026-08-29 · 4a0ae7f7c9b6
- site_page: https://spatie.be/docs · fetched 2026-08-29 · 08e024d86d95
- site_page: https://spatie.be/about-us · fetched 2026-08-29 · d3cb88e4b34c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/laravel-image-optimizer | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="spatie/laravel-image-optimizer")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem