Transparent webp images are rendered incorrectly
The above image is a lossy webp containing black text over a completely transparent background. In Firefox and in GIMP (where it was created), it renders correctly, but opening it in gThumb looks like the following:
Note that transparency is only working in the tiles where the alpha value is not uniformly 0.
This does not affect lossless webp's. Lossless webp's are affected, different test cases are need to reproduce.
My gThumb version is 3.10.4, 3.12.0
Output of inxi -SG -xx
:
System: Host: Qykopi Kernel: 5.14.3-arch1-2-vfio x86_64 bits: 64 compiler: gcc v: 11.1.0 Desktop: GNOME 40.5
tk: GTK 3.24.30 wm: gnome-shell dm: GDM, LightDM Distro: Arch Linux
Graphics: Device-1: Intel RocketLake-S GT1 [UHD Graphics 750] vendor: ASUSTeK driver: i915 v: kernel
bus-ID: 00:02.0 chip-ID: 8086:4c8a
Device-2: NVIDIA GK104GL [Quadro K4200] driver: vfio-pci v: N/A bus-ID: 01:00.0 chip-ID: 10de:11b4
Device-3: Advanced Micro Devices [AMD/ATI] Tonga PRO [Radeon R9 285/380] vendor: XFX Pine driver: amdgpu
v: kernel bus-ID: 04:00.0 chip-ID: 1002:6939
Display: wayland server: X.Org 1.21.0.99 compositor: gnome-shell driver:
loaded: amdgpu,modesetting,nvidia alternate: ati,fbdev,intel,nouveau,nv,vesa resolution:
1: 1920x1200~60Hz 2: 2560x1440~144Hz s-dpi: 96
OpenGL: renderer: Mesa Intel Graphics (RKL GT1) v: 4.6 Mesa 21.2.3 direct render: Yes
Edited by Louis Thomas