# spatie/image-optimizer

PHP library that optimizes PNG, JPEG, WebP, AVIF, SVG and GIF images by running them through external optimizer binaries.


Source: https://findsoftware.frbit.cloud/spatie-image-optimizer/
Last reviewed: 2026-10-28
Listed since: 2026-10-28

## Record

### Links

- repository: https://github.com/spatie/image-optimizer
- docs: https://github.com/spatie/image-optimizer/blob/main/README.md

### Identity

- status: active
- maintainer: Spatie bvba
- maintainerType: company
- parent: unknown
- firstRelease: 2017
- hqCountry: BE

### Kind

- category: build-tool, media
- hosting: php
- language: php
- runtime: php
- runtimeMin: php 7.4
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: composer require spatie/image-optimizer

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 1
- latestReleaseDate: 2026-06-29

### Adoption

- githubStargazers: 2882
- packagistDownloads: 94253422
- npmWeeklyDownloads: not applicable
- contributors: 46
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 5567
- dependentPackages: 82

### Sources

- urls: https://api.github.com/repos/spatie/image-optimizer (read 2026-10-28)
- urls: https://github.com/spatie/image-optimizer/blob/main/README.md (read 2026-10-28)
- maintainer: https://github.com/spatie/image-optimizer/blob/main/.github/LICENSE.md (read 2026-10-28)
- maintainerType: https://github.com/spatie/image-optimizer/blob/main/.github/LICENSE.md (read 2026-10-28)
- hqCountry: https://spatie.be/open-source (read 2026-10-28)
- language: https://api.github.com/repos/spatie/image-optimizer (read 2026-10-28)
- category: https://github.com/spatie/image-optimizer/blob/main/README.md (read 2026-10-28)
- runtime: https://github.com/spatie/image-optimizer/blob/1.10.0/composer.json (read 2026-10-28)
- runtimeMin: https://github.com/spatie/image-optimizer/blob/1.10.0/composer.json (read 2026-10-28)
- installMethod: https://github.com/spatie/image-optimizer/blob/main/README.md (read 2026-10-28)
- license: https://github.com/spatie/image-optimizer/blob/1.10.0/composer.json (read 2026-10-28)
- licenseModel: https://github.com/spatie/image-optimizer/blob/main/.github/LICENSE.md (read 2026-10-28)
- firstRelease: https://api.github.com/repos/spatie/image-optimizer/releases (read 2026-10-28)
- currentMajor: https://api.github.com/repos/spatie/image-optimizer/releases (read 2026-10-28)
- latestReleaseDate: https://api.github.com/repos/spatie/image-optimizer/releases (read 2026-10-28)
- githubStargazers: https://api.github.com/repos/spatie/image-optimizer (read 2026-10-28)
- contributors: https://api.github.com/repos/spatie/image-optimizer/contributors (read 2026-10-28)
- packagistDownloads: https://packagist.org/packages/spatie/image-optimizer.json (read 2026-10-28)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/spatie%2Fimage-optimizer (read 2026-10-28)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/spatie%2Fimage-optimizer (read 2026-10-28)

## Notes

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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
