In this example, we shall create a utility class for handling photos that can be used by other applications (as a module) to access Photo metadata and display preview images easily.
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
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 you use PIP, ensure ...