The shapes in the loaded workbook are all removed after save
Created originally on Bitbucket by icoxfog417 (Takahiro Kubo)
The reproduce procedure is the following.
- Create
shapes.xlsx
that contains pictures (Insert > Shapes) xlsx = load_workbook(shapes.xlsx)
xlsx.save(saved_shapes.xlsx)
- The inserted shapes are all removed
Minimum code to reproduce
from openpyxl import load_workbook
xlsx = load_workbook("shapes.xlsx")
xlsx.save("saved_shapes.xlsx")
Dependencies
openpyxl==3.0.3
Pillow==7.1.2
Attachments: shapes.xlsx