spatie/image-optimizer
PHP library that optimizes PNG, JPEG, WebP, AVIF, SVG and GIF images by running them through external optimizer binaries.
spatie/image-optimizer is a PHP library that optimizes image files by running them through external optimizer binaries, which are installed separately. The package uses whichever of them are present on the system. It is installed with Composer, and Spatie bvba, a company in Antwerp, Belgium, publishes it.
Worth knowing
The README warns that SVGO can break an SVG file.
Identity
Rendering and deploy
- Install with
- composer require spatie/image-optimizer2
Releases
Adoption
Sources
- 2026-10-28: links, Written in, GitHub stars
api.github.com/repos/spatie/image-optimizer - 2026-10-28: links, Categories, Install with
github.com/spatie/image-optimizer/blob/main/README.md - 2026-10-28: Maintainer, Maintained by, License model
github.com/spatie/image-optimizer/blob/main/.github/LICENSE.md - 2026-10-28: Headquarters
spatie.be/open-source - 2026-10-28: Runtime, Minimum runtime, License
github.com/spatie/image-optimizer/blob/1.10.0/composer.json - 2026-10-28: First release, Current major version, Last release
api.github.com/repos/spatie/image-optimizer/releases - 2026-10-28: Contributors
api.github.com/repos/spatie/image-optimizer/contributors - 2026-10-28: Packagist downloads
packagist.org/packages/spatie/image-optimizer.json - 2026-10-28: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/packagist.org/packages/spatie%2Fimage-optimizer