I am currently using this to get the image alt text:
$referenceNode = array( 'customQuery' => '//w:drawing//wp:docPr', ); $contents = $docx->getDocxPathQueryInfo($referenceNode); foreach ($contents['elements'] as $content) { echo $content->getAttribute('descr'); }
I would also like to know the image dimensions. I have tried to use:
$images = (new Indexer($this->getPath()))->getOutput()['body']['images'];
which has the dimensions but I don't have a way to match the results.
Any suggestions? Thanks