📅  最后修改于: 2022-03-11 14:55:30.234000             🧑  作者: Mango
Heres what you have to do...
This works for pngs and jpegs so far...
Go to the Cimg.h source file and paste this wherever:
#define cimg_use_png
When your compiling include lib-png
This is a working compiler command.
g++ -O3 -o try main.cpp -lm -lpthread -lX11 -lpng