A simple yet effective way to add a refreshing background on the jellyfin login page it now auto reloads the background image after a configurable amount of time Based on BobHasNoSouls https://github.com/BobHasNoSoul/jellyfin-fanartbackground
- Rewrote the README with instructions for use with docker compose installs of Jellyfin.
- Made it so you self serve the script via Jellyfins web server.
- Made away with the use of an array to hold all the file names, now you just tell it how many pictures and the extension type.
- Made it so that file names are possible, not just numbered images.
- Made the time easily adjustable.
- Ensured the images expands from the center rather than the top left corner
- Oh and I renamed it jellyfin-login-artbackground because I use it to serve AI generated sci-fi art not fanart.
- 05:29:24 - Include index.html to make updating it easier since the recent major update as subsequent minor updates.
- Take down Jellyfin
docker compose down - Add the follwing volumes to your compose file. These allow edting of the index.html file and to serve the required files.
volumes:
- ./config/images:/jellyfin/jellyfin-web/images
- ./config/index.html:/jellyfin/jellyfin-web/index.html
- Downloaded the included index.html file and place it in your ./config folder as configured above.
- Create an images folder in your config directory to match the local volumes above.
mkdir ./config/images - Download the cssbuster.js script from the repo and place it in the images folder created above. ./config/images/cssbuster.js
- Create a backgrounds folder in the above images folder
mkdir ./config/images/backgrounds - Bring Jellyfin back up
docker compose up -d.
- Fill the backgrounds folder with images with a consistent numbering system
1.jpg, 2,jpg, 3,jpg,,,,,, - To use named files you need to adjust the imgPath or imgExt variables in the script to match your naming.
- eg for
Background_1.jpg, Background_2.jpg, Background_3.jpg,,,,,use
imgPath = "/web/images/backgrounds/Background_";
- eg for
1_background.png, 2_background.png, 3_background.png,,,,,use `
imgExt = "_background.png"; `
- You can also use a combination if your numbering is in the middle of the name.
- The numbering has NO padding and should start at 1.
- Set the number of images file count variable in the script to match how many you have in your folder.
imgCount = "30"; - Set the image display time variable in the script file.
reSeconds = "7.5";
Then simply refresh the page if you still have issues clear your cache or restart Jellyfin one more time
imgPath = "/web/images/backgrounds/"; // Path to find images. Files served from /jellyfin/jellyfin-web/ = /web/
imgExt = ".jpg"; // File type to be found in imgPath. Example naming 1.png, 2.png or 1.jpg, 2.jpg
imgCount = "30"; // How many images found in imgPath
reSeconds = "7.5"; // Reload image every n seconds
Not all images work well on mobile phones (some vertical displays)