Wallpaper not cycling through photos randomly

I am trying to have Wallpaper (through System Settings) rotate through pictures in my photos album as my desktop background.

I have selected and added an album from the Wallpaper setting of system settings via "Add Photo Album" from the pulldown menu at the bottom.

It will display 1 picture on the desktop but when I click on Random (to cycle pictures) it reverts to the generic Mac background.

I have tried running through 'All Pictures', different Albums, individual (smaller albums), and nothing seems to work.

I have it selected to rotate every day but even changing it to all of the different options (5 seconds, when waking from sleep, etc) it doesn't work.


In addition, if I have it rotate through pictures not randomly (without checking the box) it only cycles through 2 pictures.


The photos file is located on an External drive with 3.5 TB available. It is loaded as the default photos album in Photos and doesn't show any delay when observing photos from the app.

The Photos file is too large to put on the main HD which is why it goes through the external HD.

I have run disk first aid on both volumes, checked the "Profiles" (there are none), tried restarting, and probably a few other things.


Mac Studio, Ventura 13.5.1, Apple M2 Ultra, 128GB Memory, 1TB HD space (with 511 GB available)

Apple Studio Display and a single monitor, connected via the thunderbolt cord (that was supplied with the monitor).

Thanks for your help,

Mark

Mac Studio, macOS 13.5

Posted on Sep 6, 2023 9:57 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 14, 2024 12:59 AM

I found my way to solve this.


  1. There is a perfect open source software "osxphotos": https://rhettbull.github.io/osxphotos/index.html
  2. I use this to export all of my photos tagged with "bg" from the Photos app to a file system folder "bg.osxphotos"
  3. This happens automatically via crontab on a daily basis
  4. In system preferences I use "bg.osxphotos" as the source of my random wallpaper photos
  5. Since there's no caching issue with file system folders (instead of Photos app) this works perfectly


crontab entry


50 9 * * * /usr/local/bin/photos-to-bg 


script /usr/local/bin/photos-to-bg


#!/bin/sh
rm -rf /Users/xxx/Pictures/bg.osxphotos/*
/Users/xxx/.local/bin/osxphotos export /Users/xxx/Pictures/bg.osxphotos --skip-original-if-edited --update --keyword "bg" 2>&1


Similar questions

51 replies
Question marked as Top-ranking reply

Jun 14, 2024 12:59 AM in response to Mark_the_great

I found my way to solve this.


  1. There is a perfect open source software "osxphotos": https://rhettbull.github.io/osxphotos/index.html
  2. I use this to export all of my photos tagged with "bg" from the Photos app to a file system folder "bg.osxphotos"
  3. This happens automatically via crontab on a daily basis
  4. In system preferences I use "bg.osxphotos" as the source of my random wallpaper photos
  5. Since there's no caching issue with file system folders (instead of Photos app) this works perfectly


crontab entry


50 9 * * * /usr/local/bin/photos-to-bg 


script /usr/local/bin/photos-to-bg


#!/bin/sh
rm -rf /Users/xxx/Pictures/bg.osxphotos/*
/Users/xxx/.local/bin/osxphotos export /Users/xxx/Pictures/bg.osxphotos --skip-original-if-edited --update --keyword "bg" 2>&1


Nov 11, 2023 9:49 PM in response to Mark_the_great

I made an album of my chosen photos, labeled it Wallpaper and added that album to my wallpaper choices. I chose Fit to Screen, Shuffle every 5 seconds Randomly. When I clicked on the album, I clicked on show all, and I manually clicked on EVERY photo in the album. Now, finally each photo is displayed randomly every 5 seconds. It's a pain if you have a lot of photos in the album, but at least the method works.

Nov 26, 2023 12:16 PM in response to Mark_the_great

I found that braininpa's method seems to work.

Clicking on "show all" for a specific album (all photos in my case), scrolling down to the last picture in that album, selecting the last picture, click the random checkbox, and finally setting how often you want it to cycle seems to work.

I think I had to try this a few times before it worked though.

Mark

Mar 29, 2024 1:27 PM in response to Mark_the_great

I've spent way longer footering about with this than I want, or should have had, to.


In the end I found that setting the wallpaper to (grits teeth) each individual photo in my library one at a time*, then selecting All photos, seemed to work. So I guess there is some caching thing at play here – unless the hi-res images are available locally, they can't be used as wallpaper.


*Not quite as painful as it sounds; you can cycle through all your photos quite quickly using the arrow keys. It only takes a second for each one to load if you have a halfway decent internet connection. Assuming you don't have like 50,000 photos, which I guess will be the case for some.

Oct 17, 2023 12:01 PM in response to christianausbiedenkopf

Same here with macOS Ventura 13.6. It will show a few of the newest photos only.


Just found out a solution that worked for me:

  • I forced it to show the first photo in the album by scrolling to the rightmost photo in the album overview
  • I switched back to the automatic cycling and it now shows all photos
  • It has to be set vor every connected display individually


Cheers,


Christian

Nov 15, 2023 7:26 AM in response to Mark_the_great

After years of working, a few years ago this stopped working on all my Macs except a 2017 iMac which is not being updated past Ventura. My kludgy work around is I have exported all photos - all 30,000 of them - from the Apple Photo Library to an external drive. I then set that drive as the wallpaper source. This works ... for me. However, Activity Monitor tells me that this "legacy" wallpaper is using almost 8 GB of physical memory! (I have 18 GB on the new MacBook Pro M3.) And this causes a swap file to be created, and memory pressure to go up a bit, but still within the green zone for what I do, which isn't much. I also have to manually update the exported file any time there are new photos in the iCloud connected actual photo library. Not happy. I can either get more RAM or go back to the supplied wallpapers which do not even show up as taking memory in Activity Monitor and certainly not almost 8GB.

Oct 17, 2023 7:44 AM in response to Mark_the_great

Same here with macOS Ventura 13.6. It will show a few of the newest photos only.


Just found out a solution that worked for me:

  • I forced it to show the first photo in the album by scrolling to the rightmost photo in the overview of the album
  • I switched back to the automatic cycling and it now shows all photos
  • It has to be set vor every connected display individually


Cheers,


Christian

Nov 27, 2023 6:08 AM in response to EdDC

Although that worked for me somewhat in the past, I've had no luck with it lately. Here is what *does* work: Export all photos to a file - you can use an external drive if you are limited on internal storage. Set that file as your wallpaper source, rotating every whatever time and either randomly or in sequence - your choices.


For a screen saver, I use Art Saver. Check it out at http://artsaver.de/index.html


I have way too much invested in my photography to settle for some generic wallpaper and screen saver. Apple's pictures are pretty but have zero relevance to me. Good luck.


Aug 6, 2024 9:45 AM in response to braininpa

I have tried Brianinpa's suggestion (my favorite album has 2,700 photos in it), and this method does not work for me (2023 MacBook Pro M2) Sonoma 14.6).


It doesn't matter if I click on the first photo, then the last, then back to the top and click on the "rotate" icon. Or click on first, click on last, click on first again, and then click on "rotate". Neither works. If I pick a different album (one with 875 photos), the first last method just ends up toggling between two photos, not all the ones in between.


I have a lame workaround, but it's too time-consuming to re-apply every few weeks when the solution breaks. Pick the first photo in the album, then #2, then 3#, etc., until you've toggled through all 500 or 2000 of them. Then click "rotate," and the wallpaper will indeed rotate through all the photos you've touched. Then do this all over again for desktop two and desktop three.

Dec 2, 2023 2:15 AM in response to MacUser315

I just upgraded to Sonoma 14.1.2 from Ventura and the cycling through a Photos album is broken again. My album contains 359 photos.


If you select the cycling of an album right away it will not show any photos in the album, just the default background.

If you click on individual photos within the album it will show these photos.

If you then click on cycling again, it will show photos you have clicked on before only, independent of choosing random order or not.

The trick clicking on the last photo in the album does not work here as before in Ventura.

I tried to delete and add the same album again in Wallpaper but that did not help either.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Wallpaper not cycling through photos randomly

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.