Closed ChiaYen-Kan closed 1 year ago
The webp image format can't be supported by XlsxWriter because it isn't, strictly speaking, supported by Excel.
Recent versions of Excel allow you to import *.webp
images but it converts them to *.png
files on the fly and it doesn't store or render the webp file.
Here for example is an unzipped Excel file with a webp image (note that the media entry refers to a png
file):
$ ./xunzip webp.xlsx
Archive: webp.xlsx
inflating: webp/[Content_Types].xml
inflating: webp/_rels/.rels
inflating: webp/xl/_rels/workbook.xml.rels
inflating: webp/xl/workbook.xml
inflating: webp/xl/drawings/drawing1.xml
extracting: webp/xl/media/image1.png
inflating: webp/xl/styles.xml
inflating: webp/xl/drawings/_rels/drawing1.xml.rels
inflating: webp/xl/theme/theme1.xml
inflating: webp/xl/worksheets/sheet1.xml
inflating: webp/xl/worksheets/_rels/sheet1.xml.rels
inflating: webp/docProps/app.xml
inflating: webp/docProps/core.xml
As such you will need to convert any webp images to a format that Excel (and XlsxWriter) supports like png
or jpg
.
Closing as can't/won't fix.
Feature Request
Hi
please support use webp image format in insert_image function
in version 3.1.2, if use insert_image function insert a webp image will got a excption
thank you