thomasb88

Results 14 comments of thomasb88

Emf Specifications: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-emf/91c257d7-c39d-4a36-9b1f-63e3f73d30ca?redirectedfrom=MSDN

So, PHP getimagesize and getimagesizefromstring accept the following formats https://www.php.net/manual/fr/image.constants.php It is not including emf file (neither svg...). So this could be a PHP Feature Request, but in the meantime,...

Hi Progi1984, I hadn't the time to install the whole environment to be able to test looking to the project standards, but i wrote a glue for getimagesize that is...

But this only solve the CheckImage Problem. There is also another problem on parseImage on PhpWord/Shared/Html.php on line 960

My Bad, the image type should also be modified

Well, EMF to JPEG is not a lossless conversion. That's why i updated PHPWord to manage emf image. But you're right that if you don't mind about image quality, your...

I have one, but it is my customer one, so it can't be used like that. So i used the trial version of the Metafile Companion Software, and then produce...

Why don't you use the findContainingXmlBlockForMacro function ? In some way it has the same logic as your regexp, but your regexp seems complex for big files. Whereas findContainingXmlBlockForMacro use...

Note i see in PhpWord\Escaper\RegExp the following const REG_EXP_DELIMITER = '/'; But: - It can't be modified - It's not escaped in TemplateProcessor.php