libmediaart is trying to save album arts as jpg file, but the source might 
contain an alpha channel. Previously gdk-pixbuf would silently drop the alpha 
channel, but now it raises an error instead.
It is still an open question upstream whether they'd like to support this 
legacy behaviour: https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/293

The test-case indeed is using a PNG file with transparency, which makes
the test fail against the new gdk-pixbuf. Because album art is user-
provided or downloaded through external services, and PNG files were
always accepted, simply changing the test is not enough.

Instead there's an open merge request upstream to switch the image
loading/saving library to glycin (which gdk-pixbuf wraps anyways), which
exposes APIs which allows loading of images discarding the alpha
channel. Because fixing this in the gdk-pixbuf implementation is not any
easier than validating this different implementation, I suggest we go
ahead and backport the patch to switch libmediaart to glycin. Fedora is
also backporting this patch.

I have prepared this change in salsa, which needs sponsoring to debian
and ubuntu: https://salsa.debian.org/gnome-
team/libmediaart/-/commit/6c23be69b2bcdfd7790630504e8fe662872d8187

** Bug watch added: gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues #293
   https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/293

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2146892

Title:
  libmediaart: FTBFS in Resolute

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libmediaart/+bug/2146892/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to