Skip to content

Commit 338251c

Browse files
committed
Bmp to Jpeg func..
I have Included a wiki directory on how to include the following library to use the function, though it produces a wrong result at the current time being, i have left the test functions as required and updated the Tasks.json / c_cpp_properties.json in the wiki.
1 parent 4c2cf38 commit 338251c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/assets/images/test_ima.bmp

768 KB
Binary file not shown.

src/assets/images/testjpg.jpg

20.4 KB
Loading

src/main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
#include "gtk_gui.c"
2+
//#include "converters/bmp_to_jpeg.c" // Include this line to test the bmp_to_jpeg function
23

34
int main(int argc, char **argv)
45
{
6+
//Include the following line to test the bmp_to_jpeg function
7+
//bmp_to_jpeg("assets/images/test_image.bmp", "assets/images/testjpg.jpg");
8+
59
GtkApplication *app;
610
int status;
711

@@ -13,7 +17,6 @@ int main(int argc, char **argv)
1317
status = g_application_run(G_APPLICATION(app), argc, argv);
1418
// release application object
1519
g_object_unref(app);
16-
1720
// wait for user input before exiting
1821
getchar();
1922

0 commit comments

Comments
 (0)