FindSoftware

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

Status
Active
Maintainer
Spatie bvba3
Maintained by
Company3
First release
20176
Headquarters
Belgium4

Rendering and deploy

Install with
composer require spatie/image-optimizer2

Releases

Current major version
16
Last release
2026-06-296

Adoption

GitHub stars
2,8821
Packagist downloads
94,253,4228
Contributors
467
Dependent repositories
5,5679
Dependent packages
829

Why these figures do not compare

Sources

  1. 2026-10-28: links, Written in, GitHub stars
    api.github.com/repos/spatie/image-optimizer
  2. 2026-10-28: links, Categories, Install with
    github.com/spatie/image-optimizer/blob/main/README.md
  3. 2026-10-28: Maintainer, Maintained by, License model
    github.com/spatie/image-optimizer/blob/main/.github/LICENSE.md
  4. 2026-10-28: Headquarters
    spatie.be/open-source
  5. 2026-10-28: Runtime, Minimum runtime, License
    github.com/spatie/image-optimizer/blob/1.10.0/composer.json
  6. 2026-10-28: First release, Current major version, Last release
    api.github.com/repos/spatie/image-optimizer/releases
  7. 2026-10-28: Contributors
    api.github.com/repos/spatie/image-optimizer/contributors
  8. 2026-10-28: Packagist downloads
    packagist.org/packages/spatie/image-optimizer.json
  9. 2026-10-28: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/packagist.org/packages/spatie%2Fimage-optimizer

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON