Shrink/Expand Raspberry Pi Filesystem Images

This post documents a few tricks I found useful when making SD card images for Raspberry Pi projects, to minimize file size and download times while making full use of the SD card space. These instructions work for Raspbian Stretch…