PHPackages                             flownative/image-optimizer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. flownative/image-optimizer

ActiveNeos-package[Image &amp; Media](/categories/media)

flownative/image-optimizer
==========================

Optimize resources globally based on media types.

v0.5.0(2y ago)111.8k↓50%5MITPHP

Since Aug 1Pushed 2y ago2 watchersCompare

[ Source](https://github.com/flownative/flow-image-optimizer)[ Packagist](https://packagist.org/packages/flownative/image-optimizer)[ RSS](/packages/flownative-image-optimizer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (10)Used By (0)

[![MIT license](https://camo.githubusercontent.com/4661abfe916186acde514558e7f040833cb63ba7098401a51ce339cbb2b4cf9e/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](http://opensource.org/licenses/MIT)[![Packagist](https://camo.githubusercontent.com/c60d5145dc0d7a1ce7af74d7861fe6cc56b4f096441bd21f7403d202532c9910/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666c6f776e61746976652f696d6167652d6f7074696d697a65722e737667)](https://packagist.org/packages/flownative/image-optimizer)[![Maintenance level: Friendship](https://camo.githubusercontent.com/1e42f66452ae2f07329d87d031d01ae1825930fcd952c6a0f052ccfeaeaf0292/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e74656e616e63652d2545322539392541312545322539392541312d6666363962342e737667)](https://www.flownative.com/en/products/open-source.html)

Flownative ImageOptimizer
=========================

[](#flownative-imageoptimizer)

Uses a low-level resource publishing target to optimize resources with binary tools (eg. image optimization).

Installation
------------

[](#installation)

```
composer require flownative/image-optimizer

```

Usage
-----

[](#usage)

See `Configuration/Settings.yaml.example`

Basically you configure this as your main publishing target but with an actual target on top.

The ImageOptimizerTarget simply takes any images published through it, checks if the media type matches one of the configured ones and if so optimizes the image (best result effort, so if the filesize after tool is bigger the original is used as optimized.) URLs will always point to the optimized image.

The configuration for a media type contains a `binaryPath` to the tool used for optimization of the file and `arguments` which is evaluated as EEL expression with two variables available:

- `originalPath` - a temporary file path with the original
- `optimizedPath` - a temporary file path to write the optimized file to

The `OptimizationService` can be used on it's own if optimization in another place is required. It will return an optimized `PersistentResource` object which *may* have the same binary content as the given input stream.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~252 days

Recently: every ~392 days

Total

9

Last Release

829d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10280881?v=4)[Flownative](/maintainers/flownative)[@flownative](https://github.com/flownative)

---

Top Contributors

[![kdambekalns](https://avatars.githubusercontent.com/u/95873?v=4)](https://github.com/kdambekalns "kdambekalns (25 commits)")[![kitsunet](https://avatars.githubusercontent.com/u/324408?v=4)](https://github.com/kitsunet "kitsunet (3 commits)")[![bwaidelich](https://avatars.githubusercontent.com/u/307571?v=4)](https://github.com/bwaidelich "bwaidelich (1 commits)")

### Embed Badge

![Health badge](/badges/flownative-image-optimizer/health.svg)

```
[![Health](https://phpackages.com/badges/flownative-image-optimizer/health.svg)](https://phpackages.com/packages/flownative-image-optimizer)
```

###  Alternatives

[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)[imagekit/imagekit

PHP library for Imagekit

47795.6k9](/packages/imagekit-imagekit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
