Hello,
We have run the following code:
$options = array(
'src' => 'image.png',
'imageAlign' => 'center',
'scaling' => 150, // if we set it to other values it works correctly too
'spacingTop' => 10,
'spacingBottom' => 10,
'spacingLeft' => 0,
'spacingRight' => 20,
'textWrap' => 0,
'borderStyle' => 'solid',
'borderWidth' => 1,
'borderColor' => '0000CD',
'dpi' => 75,
);
$docx->addImage($options);
With some images, and the border appears correctly opening the DOCX with all DOCX readers we have tested: LibreOffice 6, MS Word 2007, MS Word 2010, MS Word 2013, MS Word 2016 and MS Word 2019.
What DOCX reader are you using? If you send the DOCX output and the image you are using we'll check them.
Regards.