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