mwilliamson / python-mammoth

Convert Word documents (.docx files) to HTML
BSD 2-Clause "Simplified" License
785 stars 121 forks source link

Q: image size information available? #130

Open zopyx opened 1 year ago

zopyx commented 1 year ago

Q: would it be possible to extract the image size (width and height) of an image in the DOCX file and carry it forward to HTML making it available for use in the image converter? Usecase: some authors resize their image to let's 50% or 75% of the DOCX page width. This information appears useful for further workflows (e.g. PrintCSS to PDF).

mwilliamson commented 1 year ago

Nope, that information isn't currently handled by Mammoth.

vijayis commented 1 year ago

What changes can we do to handle the size information.