Template:QuickWebPTutorial
From Unvanquished
💡️
Quick WebP Tutorial for the Unvanquished game and the Dæmon engine
The best way to produce the smallest lossless WebP images with cwebp is to do:
cwebp -mt -exact -lossless -z 9 file.png -o file.webp
The recommended way to produce lossy WebP images with cwebp is to do:
cwebp -mt -exact -m 6 -q 95 -pass 10 file.png -o file.webp
⚠️
Warning: Use Exact With Lossless WebP!
Always use -exact with -lossless when using cwebp.
Using -lossless without -exact will produce an image with lossless RGB channels but with a lossy alpha channel.
This is not wanted as game images may store something else than transparency in the alpha channel.
