# optipng-bin **Repository Path**: rn-mirror/optipng-bin ## Basic Information - **Project Name**: optipng-bin - **Description**: optipng-bin - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-20 - **Last Updated**: 2025-10-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # optipng-bin [![test](https://github.com/imagemin/optipng-bin/actions/workflows/test.yml/badge.svg)](https://github.com/imagemin/optipng-bin/actions/workflows/test.yml) > [OptiPNG](http://optipng.sourceforge.net) is a PNG optimizer that recompresses image files to a smaller size, without losing any information You probably want [`imagemin-optipng`](https://github.com/imagemin/imagemin-optipng) instead. ## Install ```sh npm install --save optipng-bin ``` ## Usage ```js import {execFile} from 'node:child_process'; import optipng from 'optipng-bin'; execFile(optipng, ['-out', 'output.png', 'input.png'], error => { console.log('Image minified!'); }); ``` ## CLI ```sh npm install --global optipng-bin ``` ```sh optipng --help ```