I can't use HTML since it produces an image smaller than the source image. The following code :
$docx->replaceTemplateVariableByHTML('image', 'inline', '<img src="logo-prospect-2.jpg" width="200" height="100" ></img>');
gives an image that is actually 155 x 80.
For using addTemplateImage, I need to know the size of the image in cm or the dpi. I only know the size of the image in pixels. How cant I convert from pixels to cm ?