Enable webp image support on Fedora

Enable webp image support on Fedora

I was surprised to find out just last week that webp images are basically universally supported by web browsers these days, which is something I somehow completely missed up until now. And so last week I went through my entire blog post history and manually replaced each photo and screenshot with a webp optimized version (with the exception of a few animated GIFs as I didn't want to recreate those).

While doing this I realized that out of the box Fedora does not actually support showing webp image thumbnails in the file browser (Nautilus) nor does Image Viewer support viewing them.

Fortunately, the fix is very easy; you just need to install a single package:

❯ sudo dnf install webp-pixbuf-loader

Now just restart Nautilus, and that's it!

❯ nautilus -q

You should immediately find webp image thumbnails show up, and Nautilus' preview (ie. pressing space with a file selected) and Image Viewer both working.