We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
docx.image.exceptions.UnrecognizedImageError
SIGNATURES
The text was updated successfully, but these errors were encountered:
This was tested on python-docx 1.1.2
python-docx
Sorry, something went wrong.
Just to understand: Which device did you use to take this photo? Did you edited/converted it with some software or sent compressed via some IM chat?
The image is a plain JPG but it's missing all the Exif information inside of it.
No branches or pull requests
The above image can't be added to a document despite being an apparently valid jpeg.
This raises
docx.image.exceptions.UnrecognizedImageError
. Apparently it doesn't match any existing header format listed inSIGNATURES
.The text was updated successfully, but these errors were encountered: