Currently only support single image frames, no animation possible.
If quality slider is set to 100 then lossless compression will be used,
otherwise lossy compression is used.
Gives about 35% of file save when re-saving splash screens with lossless
compression.
Also saves much faster, up to 15x faster than PNG with a better compression ratio as a plus.
Known Issues:
- macOS support, in theory should work unsure about mac on arm
- BW color mode support -- WebP does not have a specific grayscale encoder. We could write the image as a grayscale 3 byte image however that goes beyond what the color_mode toggle is designed for.
Libraries for testing
Google provides recompiled libraries which can be used for drop in testing. I used version 1.2.2 (latest)
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/index.html