Organizing your photos automatically

Now that we have a class that allows us to gather information about photos, we can apply this information to perform useful tasks. In this case, we will use the file information to automatically organize a folder full of photos into a subset of folders based on the dates the photos were taken on. The following screenshot shows the output of the script:

Organizing your photos automatically

The application will use the photo's information to sort pictures into folders by the date on which they were taken

Getting ready

You will need a selection of photos placed in a folder on the Raspberry Pi. Alternatively, you can insert a USB memory stick or a card ...

Get Raspberry Pi for Python Programmers Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.