Writing XLSX: Image is not inserted and excel complains about drawing issue on open
Created originally on Bitbucket by xorx1 (G. Wiora)
After switching from v2.5.9 to 2.5.10 my code for generating an excel file with a drawing added is not working any more as expected. The file created makes excel issuing a warning about a "corrupted file". Excel offers to repair the file and successfully opens it after repair but the png image imported is not visible. Looking into the xlsx files with a zip tool I found the png image is correctly placed in the excel file but in difference to 2.5.9 the file "./xl/drawings/drawing1.xml" is not filled correctly as with 2.5.9. Please see the attached files generated with 2.5.9 and 2.5.10 version.
I just verified the odd behaviour with 2.5.11 too.
The following code snippet shows how I am adding the image.
#!python
img = Image(logofile)
self.wb.active.add_image(img,addr)
Attachments: drawing1_2_5_9.xmldrawing1_2_5_10.xml