Alright folks, this project took me a while, but it is completely awesome.
I built a rig that rotates a 4K display based on the orientation of the photo (portrait or landscape) all powered by a Raspberry Pi 4 and some fancy 3D printing. The PI runs a node JS server and a stepper motor which displays the photos via the chromium web browser in KIOSK mode. It's everything I ever dreamed of and more!
You have to watch the whole video to appreciate it, as there is even a fancy Easter egg at the end with facial recognition on the RPI camera!