Hi, I made quite some alterations to the Pimoroni example 'image gallery sd´ (part of the pimoroni-pico repo).
See my variation on this example at modified example image gallery sd
Update 2022-12-09. I ran into a memory problem. For this reason I created a ‘version 2’. I also added a M5Stack Dual Button device which I connected to one of the two I2C connections of the Inky Frame, through a Seed 6-port I2C Hub. The script uses interrupts to serve the button presses. These extra two buttons are used to cycle through groups of five image files.
See the README.md for more details.