Forum


Replies: 1   Views: 1224
Addimage dpi troubles
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 Exorion  · 09-05-2021 - 16:13

Hi guys!

If i make 10 addImage times different images with options width=200px, i have a different size of images in a pdf document, due to a diffreent dpi in each image. Is there any example how i can get exactly the same width for each image i add to a document?

Thanks

Posted by admin  · 09-05-2021 - 18:48

Hello,

Please check the information available on https://www.phpdocx.com/documentation/cookbook/standardize-image-size. When adding an image you need to handled width, height and dpi values; if the images don't have the same dpi we recommend you to set the same dpi updating the images  or using the dpi option in addImage.

Regards.