Forum


Replies: 2   Views: 1143
Issue with images from
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 18-06-2021 - 17:17

Hello,

We have done some tests using your HTML and custom images, and both tables are added correctly and the images are inserted too.

Please note that phpdocx works as a web browser when adding images. If an image doesn't exist (or it can't be readed with PHP or it's corrupted), phpdocx ignores it and the image is not added to the document. Please check that the images you are adding exist and the paths are correct. We see you are adding JPG images in the first HTML and PNG in the second HTML; phpdocx is compatible with both image formats (and also others), but we just wanted to comment it so you can check if the image paths are correct in both cases.

If you send to contact[at]phpdocx the DOCX output you get after running your code (using the HTML that is not adding the images), we'll check it. If you also send the images you are adding we'll test them too.

Regards.