XML wallpaper slideshow transition does not load <from> .PNG image
I found this bug from using these wallpapers: https://aur.archlinux.org/packages/fedorainfinity-backgrounds/
If a <transition type="overlay">
involves a .PNG image, the <from>
image will not be loaded. If the user session starts during a background transition, what you see instead is the <to>
image fading in from black. (The transitions typically happen over hours, so it looks like a very dim version of the <to>
image.) .JPEG works as expected.
The XML file itself is nothing spectacular. Below is an excerpt of infinity.xml
<!-- We start with sunrise at 7 AM. It will remain up for 1 hour. -->
<static>
<duration>3600.0</duration>
<file>/usr/share/backgrounds/infinity/1-infinity-sunrise.png</file>
</static>
<!-- Sunrise starts to transition to day at 8 AM. The transition lasts for 5 hours, ending at 1 PM. -->
<transition type="overlay">
<duration>18000.0</duration>
<from>/usr/share/backgrounds/infinity/1-infinity-sunrise.png</from>
<to>/usr/share/backgrounds/infinity/2-infinity-day.png</to>
</transition>
The only relevant difference I notice between the Fedora 8 infinity backgrounds and the given default adwaita-timed.xml
is that the infinity backgrounds are .PNG images, not .JPEG. Using ImageMagick to convert the files and tweaking infinity.xml
fixes the problem.
The bug was easily reproducible. On Fedora 28 Workstation from gnome-boxes, I ran the following: sudo dnf install fedorainfinity-backgrounds -y
. Right click desktop, change background, choose this one. It might be necessary to change the time to around 8:30 AM, log out, and log back in (on X.org, you could press alt+f2 and type 'r').