danyspin97 / wpaperd

Modern wallpaper daemon for Wayland
GNU General Public License v3.0
332 stars 26 forks source link

avif image cannot be loaded #66

Closed Sendan4 closed 6 months ago

Sendan4 commented 6 months ago

I am using Hyprland and the latest version of wpaperd 1.0.1

according to the readme and the link you provide about format support, avif should be supported.

I am using 8-bit lossy encoded avif images.

$ wpaperd
WARN [wpaperd::image_loader] Unsupported(UnsupportedError { format: Exact(Avif), kind: Format(Exact(Avif)) })
danyspin97 commented 6 months ago

Hello @Sendan4, thank you for the report. avif feature was enabled for the image crate but it's only used for deconding. At the current moment only the library libdav1d can decode avif images, I have added an optional feature to fix that.

Now wpaperd supports avif images when built with avif feature.