In this example, we shall create a utility class to handle photos that can be used by other applications (as modules) to access photo metadata and display preview images easily.
Displaying photo information in an application
Getting ready
The following script makes use of Python Image Library (PIL); a compatible version for Python 3 is Pillow.
Pillow has not been included in the Raspbian repository (used by apt-get); therefore, we will need to install Pillow using a Python Package Manager called PIP.
To install packages for Python 3, we will use the Python 3 version of PIP (this requires 50 MB of available space).
The following commands can be used to install PIP:
sudo apt-get update sudo apt-get install python3-pip
Before...