mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 17:49:52 +00:00
27 lines
463 B
Markdown
27 lines
463 B
Markdown
# OptiPNG
|
|
|
|
- Source: <http://optipng.sourceforge.net/>
|
|
- Version: v0.7.7
|
|
|
|
## Dependencies
|
|
|
|
- Docker
|
|
|
|
## Example
|
|
|
|
See `example.html`
|
|
|
|
## API
|
|
|
|
### `int version()`
|
|
|
|
Returns the version of optipng as a number. va.b.c is encoded as 0x0a0b0c
|
|
|
|
### `ArrayBuffer compress(std::string buffer, {level})`;
|
|
|
|
`compress` will re-compress the given PNG image via `buffer`. `level` is a number between 0 and 7.
|
|
|
|
### `void free_result()`
|
|
|
|
Frees the result created by `compress()`.
|