Created
November 9, 2023 12:50
-
-
Save mickael-kerjean/4338e837cf85fe3b2513f9223420c9a3 to your computer and use it in GitHub Desktop.
bench thumbnail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include "image_png.h" | |
// gcc -o main.bin main.c image_png.c -lwebp -lpng | |
int main(int argc, char **argv) { | |
FILE* input = fopen("/home/mickael/Downloads/tmp/test.png", "rb"); | |
FILE* output = fopen("/home/mickael/Downloads/tmp/test_c.webp", "wb"); | |
return png_to_webp(fileno(input), fileno(output), 250); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment