mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-13 01:07:18 +00:00
@@ -18,6 +18,8 @@ struct OptiPngOpts {
|
|||||||
|
|
||||||
uint8_t* result;
|
uint8_t* result;
|
||||||
val compress(std::string png, OptiPngOpts opts) {
|
val compress(std::string png, OptiPngOpts opts) {
|
||||||
|
remove("input.png");
|
||||||
|
remove("output.png");
|
||||||
FILE* infile = fopen("input.png", "wb");
|
FILE* infile = fopen("input.png", "wb");
|
||||||
fwrite(png.c_str(), png.length(), 1, infile);
|
fwrite(png.c_str(), png.length(), 1, infile);
|
||||||
fflush(infile);
|
fflush(infile);
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Reference in New Issue
Block a user