Image path identical for all images in spreadsheet
Created originally on Bitbucket by Caram Dache
I am processing spreadsheets with images. There are about 25 images per spreadsheet, and there are about 500 spreadsheets. I need to extract and save the images. It’s important for that use case to keep the basenames and extensions intact.
However, as far as I could find out, they are not available:
-
image.path
is always/xl/media/image1.<ext>
(i.e. the index is always1
, regardless of the image). -
image.format
is the internal type used by openpyxl/PIL, and not the original file extension (they can differ). -
image._id
is always1
.
Did I miss something?