I create html template with images <img>
Then use such code
$phpWord = new PhpWord();
\PhpOffice\PhpWord\Settings::setOutputEscapingEnabled(true);
\PhpOffice\PhpWord\Settings::setTempDir('/tmp');
$section = $phpWord->addSection();
\PhpOffice\PhpWord\Shared\Html::addHtml($section, $htmlData);
$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
$objWriter->save($docx);
Generation is very slow, even if use 1 image
If use more 1 image it much more slow
How to increase speed?