This package provides pre-compiled optipng binaries for seamless local usage on any platform.
composer require n5s/local-bin-optipng
To get the optipng binary path for the current platform:
use n5s\LocalBin\OptiPng;
$optipng = OptiPng::getPath();
Pre-compiled binaries are sourced from imagemin/optipng-bin.
Please refer to the imagemin/optipng-bin repository for more information.