I was trying to change my lockscreen wallpaper because the inbuilt feature didn't work. I searched and found a solution of this. Edit line 1814 in
sudo -H gedit /etc/alternatives/gdm3.css
to
#lockDialogGroup {
background: #2c001e url(file://{file location});
background-repeat: no-repeat;
background-size: cover;
background-position: center; }
This works, but not in every situation. I have 2 .jpg
files file 1 is 108.5kB and file 2 is 9.5kB, both located in the same directory. With file 1, the lockscreen changes when I log out after logging in(turn on -> login(Isn't changed) -> log out(it's changed)). With file 2, both works fine.
So the question is
1. Is there a maximum file size limit or a maximum resolution for the lockscreen.(file 1 works fine for normal wallpaper)
2. What is the solution for this? Is there a way to scale the image like object-fit
in css?
ps. The file I want to use is file 1. I tested file 2 to check if the method is valid.
file1.jpg
in gimp (or another image editor / converter) and export it asfile1.png
to see if that works better?.png
and know it works. Thank you! But why is this happening? I think it's because some body who uploaded the image changed the original png file to jpg. But its a little awkward because in windows everything worked fine even if I changed from jpg to png and vice versa.