Insert image in openpyxl
The following inserts an image in cell A1. Adjust the image location to your needs or handle the creation of the PIL image yourself and hand that to Image() import openpyxl wb = openpyxl.Workbook() ws = wb.worksheets[0] img = openpyxl.drawing.image.Image(‘test.jpg’) img.anchor=”A1″ ws.add_image(img) wb.save(‘out.xlsx’) In older versions of openpyxl the following works: import openpyxl wb = … Read more