A plugin for the Hermione test runner that minifies reference images using optipng. Version 0.1.0 is the latest stable release; no release cadence documented. It integrates directly into Hermione's plugin system and offers configurable compression levels (0–7) with CLI/env overrides. Differentiator: reduces PNG reference image sizes automatically after updates.
npm install hermione-image-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures the plugin to automatically minify reference images after they are updated, using compression level 2.
Ensure you pass --update-refs to trigger minification.
If optipng-bin fails, install optipng globally (apt-get install optipng, brew install optipng) or use another image minifier plugin.
Upgrade Node.js to a modern version (>=12) and verify compatibility; if plugin is unmaintained, consider forking or replacing.
Use lower compression levels (2-3) for faster runs if time is critical.
Convert other image formats to PNG before using as reference images, or use a different minifier plugin.
npm install hermione-image-minifier --save-dev
Add to config: system.plugins['hermione-image-minifier'] = { enabled: true }Install optipng system-wide: apt-get install optipng (Linux) or brew install optipng (macOS)