-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
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
Multiple redundant copies of the image are inserted in the resulting docx file #218
Comments
Thanks for reporting. That sure is strange. A few checks just to be sure: you are using exactly the same template and |
Thank you for your reply.
In 4.6.4
I'm using |
… when IMAGE is used in doc header, the PNG file is added twice to word/media/.
… when IMAGE is used in doc header, the PNG file is added twice to word/media/.
Fix released in v4.7.0. Should be on NPM shortly. |
First of all thank you so much for this library. It is so powerful !!!
![Capture1](https://user-images.githubusercontent.com/20182873/124506129-4aebd080-ddcb-11eb-903d-70a1625ebccb.PNG)
![Capture2](https://user-images.githubusercontent.com/20182873/124506141-50e1b180-ddcb-11eb-8f4d-3323b04f114d.PNG)
I encountered a problem after upgrading the version of docx-template.
I was using the version 2.7.2 with images in the docx template and the generated docx file has a correct size (6137 Ko).
After upgrading to the lastest version 4.6.4, for the same docx template I get a docx file of 84 109 Ko (13 times bigger !)
So I had a look at the xml content of the file and saw that in the new version, the file contains for example 14 times the same image (see capture1.png)
In version 2.7.2 the same image appears only once (see capture2.png).
Why are the images repeated several times in the xml content ?
Thank you for your help !
The text was updated successfully, but these errors were encountered: