QOI – The Quite OK Image Format
My preferred image format looks like:<p><pre><code>    byte 0-3: magic code
    byte 3-10: 64-bit index into global decoder table
    byte 11-...: compressed data
</code></pre>
The global decoder table is maintained by a standards organization. For every occupied index, it contains a piece of WebAssembly code that decodes the data and produces an image and metadata. Advantage: no more dealing with various image formats and installing decoders libs; there is just 1 format that can be tuned to specific uses and it will be available hundreds of years into the future. The WebAssembly code can be hand-optimized into native code (or even hardware) for frequently used decoders. The only downside is that you might occasionally need to access the central code repository over the internet to download a decoder.