How to build a stunning high-end 32 inches 4K digital photo frame with the Raspberry Pi 4 2

How to build a stunning high-end 32 inches 4K digital photo frame with the Raspberry Pi 4

In this article, I will show you how to build a 32 inches, 4K pixel resolution digital photo frame using a Raspberry Pi 4. As image viewer software, I will again use Pi3D with wonderful crossfading transitions.

I will refer to some of my earlier articles that deal with parts of these instructions in more detail throughout the text.

4K is finally here

The wait was finally over. On June 24, 2019 the Raspberry Pi foundation officially released its latest marvel: The Raspberry Pi 4 Model B. Among the many new features, a 4K HDMI output with a pixel resolution of 3840 x 2160 px.

4K HDMI output was indeed a feature that some competitors like ODROID had offered years before. But with the whole Raspberry Pi ecosystem and developer support, I decided to wait.

How to build a stunning high-end 32 inches 4K digital photo frame with the Raspberry Pi 4 3
Raspberry Pi 4 with 4K Micro HDMI Output

When the Pi 4 was finally introduced, the Raspberry Foundation even offered two 4K outputs instead of just one.

What 4K actually means

“4K resolution” refers to a horizontal display resolution of approximately 4000 pixels. While there are slight variations, the dominant standard for computer displays is 3840 × 2160px, called 4K UHD. The aspect ratio is 16:9. The size of the screen has nothing to do with 4K or not. You can get them from 24 inches to larger than 80 inches “Las Vegas-style” screens.

To compare: My first home-brewed digital picture frame had an ASUS 24 inches screen featuring a resolution for 1920 x 1200 (16:10), called the WUXGA resolution.

How to build a stunning high-end 32 inches 4K digital photo frame with the Raspberry Pi 4 4
ASUS VS24AH – 24 inches
How to build a stunning high-end 32 inches 4K digital photo frame with the Raspberry Pi 4 5
BenQ PD3200U – 32 inches

So, moving from 24 to 32 inches means a 360% increase in pixels from 2.3M to 8.3M. And a screen real estate going from 167 cm2 to 282 cm2, an increase of 69%.

As you can see, the pixel increase is much higher than the surface increase which means that the sharpness increases A LOT!

The one (huge) downer of 4K displays for photo frames

There is one reason why I have held back until now with a 4K project. I was still hoping for a 16:10 formatted 4K display.

But almost a year later, I gave up that hope. The display manufacturers are too focused on video content and might not ever go back to any less wide format than 16:9.

The reason why this is important especially for photographers is that the aspect ratio of photo cameras is typically 3:2 or even 4:3. Pulling them up on a 16:9 screen will either result in pillar boxing, those black bars left and right, or almost 20% cropped space. Neither is very desirable if you like great photo art.

How to build a stunning high-end 32 inches 4K digital photo frame with the Raspberry Pi 4 6
3:2
How to build a stunning high-end 32 inches 4K digital photo frame with the Raspberry Pi 4 7
16:10
How to build a stunning high-end 32 inches 4K digital photo frame with the Raspberry Pi 4 8
16:9

There is a workaround to this (which I will explain further down), but it would require a rather large matte (Passepartout) to which my beloved wife vigorously objected to (for the time being), so I grudgingly accepted that I would have to re-crop all my images in Adobe Lightroom to not look too bad on a 16:9 screen.

Why I picked the BenQ PD3200U

It had almost been five years since I had made a significant hardware update to my digital picture frame installation in our living room. Yes, I had exchanged the Pi 2 for the Pi 3 two years ago, but the screen and the frame had remained unchanged.

On the software side, I had added voice control, integration in our Home Automation system, easier maintenance of the photo library, and a number of tidbits here and there. But it was still the same old 24 inches 1920 x 1200px frame. And I really want a larger and sharper screen.

So, I took a deep look for computer monitors on Amazon and bare bone displays with controller cards from Chinese vendors on Aliexpress.

I wanted to avoid having to take a computer monitor apart by buying a naked display but price-wise there wasn’t much of an advantage if you factor in shipping to Europe, VAT, and import duties. Also, the delivery times can be very long.

So, I gave up on that idea (at least for now) and went back to looking for a suitable computer monitor on Amazon. My list of criteria from my earlier article “Read these 10 essential tips for picking the right monitor for a digital picture frame” was my evaluation guide.

I ended up ordering the BenQ PD3200U, a 32 inches UHD 4K IPS display with 100% rRGB colors. Yes, you can get cheaper computer monitors or TVs in that size and resolution but I wonder if the screen quality is the same. The BenQ display looks stunning.

How to build a stunning high-end 32 inches 4K digital photo frame with the Raspberry Pi 4 9
BenQ PD3200U

When the monitor arrived, I was a little bit surprised how heavy it was with 12.5kg. When you put this monster up the wall, you definitely need an industrial wall mount to hold it tight!

A comparable IPS display panel on Aliexpress weighs about 3.5 kg but you need to add in the power supply, the LCD controller board, and the wall mount.

The weight is important when you think about the structure of your frame and the material you are going to use.

The Raspberry Pi hardware

For this project, I used a Raspberry Pi 4 with 4GB of RAM, a 32GB Samsung SD-card, and the official 5V power supply. It would probably work will less RAM, but the price differential between the 2GB and the 4GB version is not big, so I recommend to go with the 4GB model.

You also need a decent HDMI cable with a micro HDMI plug on one side and a normal full-size HDMI plug on the other. I say “decent” because the overall consensus seems to be that with 4K it is safer to use a solidly built HDMI cable and not the cheapest one you can find.

The basic software configuration of your Raspberry Pi 4

Next, I set up a fresh image of “Raspbian Buster with Desktop”, configured with WiFi, and Samba. You can find the step-by-step instructions in my post “How to configure the software for your digital picture frame in 60 minutes“.

For a 4K monitor to work with my favorite image viewer Pi3D, the following configuration settings are important: Boot in console with auto-login, specify a GPU memory of 256MB, disable 4Kp60 HDMI and composite video, and set the GL Driver to Fake KMS.

Copy and paste this line in the Terminal window:

sudo raspi-config nonint do_boot_behaviour B2 && sudo raspi-config nonint get_config_var gpu_mem_256 /boot/config.txt && sudo raspi-config nonint do_pi4video V3 && sudo raspi-config

In the raspi-config module, go to 7 Advanced Options, A8 GL Driver, and select G2 GL Fake KMS.

Reboot and install the image viewer software Pi3D.

sudo pip3 install pi3d && wget https://github.com/pi3d/pi3d_demos/archive/master.zip && unzip master.zip && rm master.zip && mv pi3d_demos-master pi3d_demos

You should read more about this wonderful software package in “How I added crossfading slide transitions to my digital picture frame using Pi3D“.

Also, add a few test images to your /Pictures folder.

The Pi3D parameter settings

This section has been updated for the Pi3D PictureFrame Release May 2020.

Open the /pi3d_demos/PictureFrame2020config.py file with a text editor. For a full description, look here.

Look for these lines and enter the default values as shown here:

parse.add_argument("-t", "--fit",           default=False, type=str_to_bool, help="shrink to fit screen i.e. don't crop")
parse.add_argument("-v", "--time_delay",    default=60.0, type=float, help="time between consecutive slide starts - can be changed by MQTT")
parse.add_argument("-w", "--fade_time",     default=3.0, type=float, help="change time during which slides overlap - can be changed by MQTT")
parse.add_argument("-x", "--shuffle",       default=True, type=str_to_bool, help="shuffle on reloading image files - can be changed by MQTT")
parse.add_argument("-y", "--subdirectory",  default="/home/pi/Pictures", help="subdir of pic_dir - can be changed by MQTT")

When you define the values for the delay between images and the length of the transition effect, be aware that for some reason, the transition with a 4K monitor is longer than specified. I found that a value of three seconds corresponds to about ten seconds on a 1080p monitor (1920 x 1200 or 1080px).

Save and close the file.

Connecting the 4K display and performance indicators

Make sure that the display is attached to the HDMI port adjacent to the USB-C power input (labelled HDMI 0).

Reboot the Raspberry Pi and enter

cd /home/pi/pi3d_demos && sudo xinit /usr/bin/python3 /home/pi/pi3d_demos/PictureFrame.py :0 -- -s off -dpms -s noblank

If you have many images in /Pictures, it may take a bit to parse all the Exif data of your photos but this happens only once.

To automatically start Pi3D at boot, look again here.

On a side note, I looked at the CPU load and the temperature and compared it with mit Raspberry Pi 3 powered photo frame.

Despite a firmware upgrade that was pushed out a few months after the original launch, the Pi 4 gets a bit warmer than its predecessor. In all fairness, it is also a much more powerful system. Despite this, I did not feel the need to install cooling fans or heatsinks.

(Running Pi3D image viewer)TemperatureCPU LoadMemory Utilization
Raspberry Pi 3, 1GB @ 1920x1200px64°C3-18%33%
Raspberry Pi 4, 4GB @ 3840x2160px78°C1-5%5%

Using feh as an alternative image viewer

Should you not need crossfading, Exif filtering, MQTT control, geolocation, or any of the other wonderful Pi3D features, you could also use the feh image viewer.

Installation is with

sudo apt install feh -y && sudo raspi-config nonint do_boot_behaviour B4 && sudo reboot now

and the command then is

export DISPLAY=:0 && feh -qrYzFD120 --zoom fill /home/pi/Pictures

whereby -q = quiet mode, r = recursive, Y = hide pointer, z = randomize, F = full screen, D120 = delay of 120 seconds and –zoom fill = fills your screen.

For more information, please have a look at the this page.

Even with the 4K resolution, feh only showed a CPU load of around 1% and kept the CPU/GPU temperature at around 76°C degrees.

The difference in display quality

So, how big is the difference between the old 24 inches 1920 x 1200px and the new 32 inches, 3840 x 2160px frame?

It’s a bit of an unfair comparison. The old ASUS 24” was priced around €200 back then, the new BenQ 32” has a street price of €700.

I like to compare the viewing experience to the time when Apple introduced “Retina” screens that had four times as many pixels as the normal displays back then. At first, you don’t see much of a difference.

But after getting used to the high definition display for a while, moving over to the lower screen quality feels like there is something wrong with your glasses. The difference is huge!

Power consumption went up quite a bit from about 20 Watts for the 24 inches version to 44 Watts for the giant 32 inches 4K BenQ. So make sure, that you follow my energy saving tips.

Source material matters

It is important to note that you need high definition source material if you want to enjoy the full quality of a 4K screen.

3840 x 2160px equals just about 8 Megapixels which modern mobile phone lenses provide these days.

I took most of my images with a Nikon D800 with 36 Megapixels which leaves room for 5K or even 8K displays in the future.

By the way, if you are using Adobe Lightroom, you should export all your photos with exactly the right dimensions of your frame. By doing this, you are fully optimizing your pictures to your frame size.

The average image size went from 3MB to 12MB to account for the larger screen size. So instead of 3GB storage space on your SD-card, you now need 12GB. No sweat. SD-cards are cheap.

Frame craft

I have not yet built an artistic housing for the new 4k frame because I wanted to be sure first that the combination of Raspberry Pi 4, Pi3D, and BenQ PD3200U was working just fine.

In terms of material, I will be looking again at a metal frame, as the heavier weight of the 32 inches display requires a sturdy structure. But if you are experienced with woodwork, you can probably build a similar degree of robustness into a wooden frame as well.

You also need to look into the wall mount structure which needs to support at least 5kg. And don’t forget to hide the power cord so that you don’t ruin the visual experience and make it blend into the living room.

Outlook

I haven’t forgotten about building a photo frame with an aspect ratio of 3:2 or 16:10. This requires some magic whereby you limit the width of the screen and cover it up with a matte (Passepartout).

If you happen to be an owner of a 32 inches Memento frame, you may not know that you have a 40 inches display inside, which is matted off about 3 inches from both the right and left sides. Unfortunately, the Canadian company ceased operations a few years ago, but the idea was clever.

How to build a stunning high-end 32 inches 4K digital photo frame with the Raspberry Pi 4 10
Mementos’s matted front…

How to build a stunning high-end 32 inches 4K digital photo frame with the Raspberry Pi 4 11
… and its inner workings

So I might try this at home one day myself. Still, a few things to figure out but if the industry does not come back to at least 16:10 screen models, there is no other way for genuine photo aficionados that want to see their full 3:2 image and not a 20% cropped version of it.

So, if you are interested in this approach, stay tuned and subscribe to the blog updates in the footer of this page.

Conclusion

A large 4K digital picture frame doesn’t come cheap but is worth every penny. The display quality is absolutely stunning.

Amateur photographers invest thousands of Euros or Dollars in cameras, lenses, flashes, and all kinds of equipment. And then, you are sending your photos via WhatsApp to show up on a mobile phone screen? Surely, your photos deserve better.

Let me know what your experiences are with 4K digital photo frames!

(Photos: BenQ, Memento, Pixel calculation by LCD Tech, Kerry Givens, Unsplash, Wolfgang Männel)

Was this article helpful?

Scroll to Top