Skip to content

A digital collage picture frame, running off a raspberry pi. Randomly displays both landscape and portrait photos that can be uploaded wirelessly from a local system or mobile device.

Notifications You must be signed in to change notification settings

carlsopa/Digital_Picture_Frame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digital Picture Frame

The idea for the project came when trying to figure out what to get my dad for Christmas last year. He loves to take photos and so I started to look for a digital photo frame. The only problem is that the frames on the market would only show one picture at a time, and not adjust for orientation. So, I set out to do better and created my own digital picture frame.

What it does:
Using a Raspberry Pi for the brains, and a portable hard drive, pictures are randomly selected and displayed on a 24" screen. The screen display is set to show three photos in landscape and two in portrait orientation at the same time. The program will also take into account any photos where the camera was held "upside down" (we have all done it), and will flip it rightside up. Two ways to upload photos are either by USB or a simple web interface that can be used on either mobile or desktop.

How it works:
The main program is written in PYTHON utilizing the PYGAME module to create a full screen display. All files that are uploaded are saved to a portable hard drive to prevent constant read/writes against the SD card inside the Raspberry Pi. The program will scan over all the metadata of the pictures to determine size and orientation, this will determine which list it goes in. The software will then randomly choose a number between 0 and the max list size to select a photo to display. A simple fade in and out using opacity will transition the display between photos. The interface for managing photos is a basic HTML & PHP page that allows you to upload photos and delete them from the hard drive. This is served on the Raspberry Pi using a lightweight APACHE server.

File Descriptions:

  • PhotoDeletion.php
    Basic web page that will allow for the deletion of photos from the hard drive. It will display a table with a thumbnail version of the photo, name and size. A third column has a button that will delete the corresponding photo when clicked. Deletion is based on the name of the photo.
  • PhotoUpload.php
    Simple web page for uploading photos. Provides a button to click that will open a dialog box. Once you select all the photos that you want to upload, it will show you the total amounts. Click the upload button and it will upload them all to a temporary folder on the Raspberry Pi which will then get moved over by the main program to the main folder.
  • USB_Upload.py
    Python script that will detect any media devices connected through USB and then transfer the photos over to the Raspberry Pi.

View a video explanation & demonstration: Digital Picture Frame

About

A digital collage picture frame, running off a raspberry pi. Randomly displays both landscape and portrait photos that can be uploaded wirelessly from a local system or mobile device.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages