mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 01:37:26 +00:00
* omg it’s compiling * example actually works * Expose compression level options * Disable crypto and path module emulation in webpack * Update README * Remove small image * Use -O3 on optipng * Free memory after copy * Handle unexpected file reader return types * Rename level label to effort
471 B
471 B
OptiPNG
- Source: https://sourceforge.net/project/optipng
- 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().