Build a Raspberry Pi digital photo frame
ActivitiesProjects
Set a Raspberry Pi to start a full-screen slideshow from a photo folder each time the display powers on.
Building a Raspberry Pi digital photo frame turns a Raspberry Pi and an HDMI monitor or television into a dedicated photo display. Two documented ways to run the display are a lightweight console slideshow that reads local image files directly and a full-screen desktop browser setup that shows a web-based slideshow page.
Choose a console slideshow or a browser kiosk
For a minimal local-photo build, skip the graphical desktop altogether. Flash Raspberry Pi OS Lite onto a boot SD card, copy your JPEG files onto the Pi, connect an HDMI monitor, and install `fbi`, an image viewer utility that runs a slideshow directly to an HDMI display. Test displaying images on the connected monitor first so you can confirm the screen and viewer work together before automating playback.
Once images appear cleanly, `fbi` lets you adjust playback with command-line options. A sample setup might advance images every 60 seconds, shuffle their order, use a 1,500-millisecond blend transition, and enable automatic zoom. The display mode depends on your specific monitor, and the target path points to the folder where you copied your photos.
If you prefer a web-based slideshow page—supplied separately—Raspberry Pi's desktop-based kiosk method on Raspberry Pi OS Desktop offers an alternative. In this desktop approach, Chromium opens web pages full-screen and starts automatically once the desktop loads via the Labwc autostart file. This graphical browser setup specifies a Raspberry Pi 3 or newer with at least 1 GB of RAM, along with a microSD card, monitor, and display cable.
Start the slideshow automatically after a reboot
A photo frame needs to resume its slideshow on its own after a reboot. On a Raspberry Pi OS Lite console setup, a root `crontab` `@reboot` entry can run a launch script that starts `fbi` and directs its output to a log file. Adding a delay inside that script—such as waiting two minutes before invoking `fbi`—lets the operating system finish booting and clear the login prompt first. Because startup mechanics depend on the operating system and display layer, a console `crontab` script does not transfer unchanged to a desktop setup.
Keep the screen from going dark
If your frame goes blank after sitting idle, the setting you need depends on whether the slideshow runs in a desktop session or on a text-only console:
- Desktop sessions (such as a browser kiosk): Turn off Screen Blanking using the toggle in the Control Centre's Display tab, or disable it through `raspi-config`.
- Text-only consoles (such as `fbi` on Raspberry Pi OS Lite): Desktop settings do not apply; instead, set the `consoleblank` kernel parameter to `consoleblank=0` to prevent the console from blanking.
Because menu paths and interface details can shift across Raspberry Pi OS versions, check your current release's Display settings if the desktop toggle location differs.
Match mixed photo libraries to a wide screen
Preprocessing photos before loading them onto the Pi is optional, and a viewer like `fbi` can handle automatic zoom on its own.
If you are displaying both horizontal and vertical shots on a 16:9 screen—such as a 1366 × 768 television—and want tighter control over framing, you can preprocess your images ahead of time. One approach crops horizontal pictures to the display's 16:9 aspect ratio using face detection so people stay in frame, and pairs vertical photos together using image embeddings so portrait shots fit the wide display.
