swaywm / swaybg

Wallpaper tool for Wayland compositors
MIT License
490 stars 31 forks source link

webp images yield error "Couldn’t recognize the image file format" #76

Closed KiaraGrouwstra closed 2 months ago

KiaraGrouwstra commented 2 months ago

using any webp image:

swaybg --version
swaybg version 1.2.1
swaybg -i osu.webp
2024-06-23 13:07:02 - [main.c:282] Found config * for output eDP-1 ((null))
2024-06-23 13:07:02 - [main.c:282] Found config * for output HDMI-A-1 ((null))
2024-06-23 13:07:02 - [background-image.c:30] Failed to load background image (Couldn’t recognize the image file format for file “osu.webp”).
2024-06-23 13:07:02 - [main.c:610] Failed to load image: osu.webp

c.f. #10, #22

mstoeckl commented 2 months ago
  1. Just to be sure, do other image types work?
  2. As suggested in #22, have you installed the package webp-pixbuf-loader to let GdkPixbuf (the image loading library swaybg uses) load WebP files?
KiaraGrouwstra commented 2 months ago

apologies, it seems like that should be it. other image types work fine indeed.