This file automatically reduces the width and height of an image file to fit your digital picture frame's display.
For more information, go to https://www.thedigitalpictureframe.com/how-to-automatically-resize-images-to-fit-your-digital-picture-frame/
Before running the script, install the necessary Python libraries with
pip install pillow watchdog pillow-heif
sudo apt-get install libheif1