All posts by
Auth credentials
Adding auth credentials to any requests.get or .post
Save image
Save to file You can specify the file type when you come to save Output as a byte array
Manipulate image
Resize an image Options: Image.NEAREST – use nearest neighbourImage.BILINEAR – linear interpolationImage.BICUBIC – cubic spline interpolationImage.LANCZOS – a high-quality downsampling filter
Load image
Load image from file Load image from URL
Installing packages on Linux
Use the pip package manager:
Installing packages on Windows
Installing via VS code Use the ‘Terminal’ window, the ‘Python’ one Installing Installing into main Python folder (not necessarily the same one your VS Code is using!) Python comes with the pip package manger Installing / updating Use the windows command prompt <<<Use ‘Run as administrator’ to it can write to the Python install directorychange […]
Installing the Pillow library
image will also install PIP / Pillow
UDP tx and receive non blocking
Transmit broadcast packet
IP functions
Get local IP address for our adaptor