This example code is provided without license from the author. Elements of the code utilise external modules which have their own licenses.
Place your images into the working directory C:\python_scripts\image_encode\
Run the following command to install the required python packages:
python3 -m pip install XlsxWriter Pillow
To embed the images, run the following command:
python3 embed_xlsx_images.py