Simple example how to save AVIF and JXL images
Required libraries:
- libaom - AV1 encoder used by libavif
- libavif - to save AVIF images
- libjxl - to save JXL (JPEG XL) images
How to compile:
g++ -Wall -Og *.cpp -lavif -ljxl -ljxl_threads -lexiv2 -o example
Run:
./example
The program will generate output.avif
and output.jxl
in current folder.