Open
Description
The above image can't be added to a document despite being an apparently valid jpeg.
from docx import Document
doc = Document(None)
with open('error.jpg', 'rb') as f:
doc.add_picture(f)
This raises docx.image.exceptions.UnrecognizedImageError
. Apparently it doesn't match any existing header format listed in SIGNATURES
.
Metadata
Metadata
Assignees
Labels
No labels