PHPackages                             sitegeist/iconoclasm - 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. [CLI &amp; Console](/categories/cli)
4. /
5. sitegeist/iconoclasm

ActiveNeos-package[CLI &amp; Console](/categories/cli)

sitegeist/iconoclasm
====================

Imagemin integration for Neos Images

v2.1.0(1y ago)243.5k↓39.7%22GPL-3.0-or-laterPHPPHP &gt;=8.1CI passing

Since Oct 26Pushed 1y ago2 watchersCompare

[ Source](https://github.com/sitegeist/Sitegeist.Iconoclasm)[ Packagist](https://packagist.org/packages/sitegeist/iconoclasm)[ RSS](/packages/sitegeist-iconoclasm/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (4)Versions (17)Used By (2)

Sitegeist.Iconoclasm
====================

[](#sitegeisticonoclasm)

### Image optimization of images for Flow and Neos using the imagemin-cli or other tools.

[](#image-optimization-of-images-for-flow-and-neos-using-the-imagemin-cli-or-other-tools)

This package is inspired by MOC.ImageOptimizer and Sitegeist.Origami  that basically perform the same task.

Deviations from the previously mentioned packages:

- All mediaTypes that shall be optimized have to be enabled explicitly.
- Imagemin-cli is used by default for all enabled media types but can be replaced as needed.
- Does not need a jobqueue like Sitegeist.Origami did because async thumbnails are nowadays default.
- Local temporary files that are later imported should support cloud storages (not tested yet).
- Temorary files with file extensions allow to use tools that rely on file extensions.

### Authors &amp; Sponsors

[](#authors--sponsors)

- Martin Ficzel -

*The development and the public-releases of this package is generously sponsored by our employer .*

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

[](#installation)

Sitegeist.Iconoclasm is available via packagist. Just add "sitegeist/iconoclasm" to the require section of the composer.json or run `composer require sitegeist/iconoclasm`. We use semantic-versioning so every breaking change will increase the major-version number.

In addition to the Flow Package the imagemin-cli and all plugins or other tools have to be available on the server. You can install the libraries globally using `npm`:

```
npm install --global imagemin-cli imagemin-pngquant imagemin-webp imagemin-mozjpeg

```

You can also install the packages into a dedicated folder instead globally. In this case you will have to configure the imegemin command with full pathes like `/your/folder/node_modules/imagemin-cli/cli.js`

```
npm install --prefix /your/folder imagemin-cli imagemin-pngquant imagemin-webp imagemin-mozjpeg

```

!!!Please verify the that the cli tools work by executing each plugin separately. Especially the imagemin-webp tool sometimes requires additional libraries!!!

Configuration
-------------

[](#configuration)

Using the `Sitegeist.Iconoclasm` configuration, the used `command` can be configured. The `mediaTypes` section allows to enable certain types and allows to override the global `command` for this type.

```
Sitegeist:
  Iconoclasm:

    #
    # The imagemin cli command, you may want to configure an explicit path here for your server
    #
    # The tool can be installed npm install --global imagemin-cli imagemin-pngquant imagemin-webp imagemin-mozjpeg imagemin-svgo
    #
    command: 'imagemin {input} > {output}'

    #
    # The media types that are to be optimized
    #
    # Each media type has to be enabled for optimizing. In case specific options or even
    # an different command shall be used the global `command` can be overwritten for each type.
    #
    mediaTypes:
      'image/jpeg':
        enabled: true
        command: 'imagemin {input} --plugin=mozjpeg > {output}'

      'image/png':
        enabled: true
        command: 'imagemin {input} --plugin=pngquant > {output}'

      'image/webp':
        enabled: true
        command: 'imagemin {input} --plugin=webp > {output}'

      'image/gif':
        enabled: false

      'image/svg':
        enabled: false

```

Usage
-----

[](#usage)

- Clear thumbnails to generate new ones that will automatically be optimized.

`./flow media:clearthumbnails`

- Flush the Fusion Caches

`./flow flow:cache:flushone Neos_Fusion_Content`

- See system log for debugging and error output.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance44

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 89.7% 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 ~148 days

Recently: every ~258 days

Total

9

Last Release

475d ago

Major Versions

v1.0.2 → v2.0.02022-02-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/51e0a02d8e12b73949ec858638aa7e295e103022cc5a879f86ac8532c2c170bd?d=identicon)[sitegeist](/maintainers/sitegeist)

![](https://www.gravatar.com/avatar/829b4ccb51e8cff3c1e4b59d60cfe8d1b86f6d77fc31a6b3fc99227f432542ca?d=identicon)[mficzel](/maintainers/mficzel)

---

Top Contributors

[![mficzel](https://avatars.githubusercontent.com/u/1309380?v=4)](https://github.com/mficzel "mficzel (26 commits)")[![kdambekalns](https://avatars.githubusercontent.com/u/95873?v=4)](https://github.com/kdambekalns "kdambekalns (3 commits)")

---

Tags

cliimageneoscms

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sitegeist-iconoclasm/health.svg)

```
[![Health](https://phpackages.com/badges/sitegeist-iconoclasm/health.svg)](https://phpackages.com/packages/sitegeist-iconoclasm)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

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