PHPOffice / PHPWord

A pure PHP library for reading and writing word processing documents
https://phpoffice.github.io/PHPWord/
Other
7.16k stars 2.68k forks source link

Invalid image: zip:///tmp/......../iamge4.png #2585

Open Loai-Hassan opened 3 months ago

Loai-Hassan commented 3 months ago

Describe the Bug

when i laod docx files it shows Invalid image: zip:///tmp/......../iamge4.png which is very weird and when i followed the code it leads to the library adding and image and triggering the error

and it happens with 90% of files

Specially the ones i made

some samples online work

but when i make a file it shows that error

Steps to Reproduce

<?php
require __DIR__ . '/vendor/autoload.php';

        $phpWord = PhpWordIOFactory::load($filePath);

Expected Behavior

the file should be loaded

Current Behavior

Invalid image: zip:///tmp/......../iamge4.png

Context

Please fill in your environment information: