As of writing, docs.codeberg.org offers images in both PNG and WebP formats.
I propose we also introduce AVIF. AVIF has better compression than WebP, resulting in a smaller file. It is also a royalty-free format (uses AOMedia Video 1, a royalty free format as well).
For example, attached to this issue is a transcode of user-settings.png to AVIF using FFmpeg with default settings. File size is reduced from the 46.0 KiB of the PNG version to 20.9 KiB. For comparison, the current WebP version's size is 26.4 KiB
Browsers without AVIF support will fallback to either the WebP or PNG versions, so they would still be supported.
As of writing, docs.codeberg.org offers images in both PNG and WebP formats.
I propose we also introduce [AVIF](https://en.wikipedia.org/wiki/AVIF). AVIF has better compression than WebP, resulting in a smaller file. It is also a royalty-free format (uses AOMedia Video 1, a royalty free format as well).
For example, attached to this issue is a transcode of [user-settings.png](https://codeberg.org/Codeberg/Documentation/src/commit/df95d702437d0d69501e4684d06445dd754cdf74/assets/images/security/user-settings.png) to AVIF using FFmpeg with default settings. File size is reduced from the 46.0 KiB of the PNG version to 20.9 KiB. For comparison, the current WebP version's size is 26.4 KiB
Browsers without AVIF support will fallback to either the WebP or PNG versions, so they would still be supported.