When you are building a Raspberry Pi camera project, you may want to compress the images captured from the camera to reduce the time to upload your image to a server endpoint. Moreover, when you connect your Raspberry Pi to your iPhone Personal WiFi hotspot, you will want to incur minimal mobile bandwidth charges from demonstrating your Raspberry Pi project in your class.
You may have either:
- Setup Raspbian Stretch Lite on Raspberry Pi 3 to run Python 3 applications, or
- Setup Raspbian Stretch Lite on Raspberry Pi Zero W to run Python 3 applications.
In this case, you will have the option to use Pillow, a fork of Python Imaging Library, to compress your jpeg image.