PHPPresentation icon indicating copy to clipboard operation
PHPPresentation copied to clipboard

CreateDrawingShape cannot insert image without file extension

Open premax opened this issue 4 years ago • 0 comments

Hello,

took me a while to discover that when using CreateDrawingShape and then setting setPath to valid image without extension (i.e. "image", not "image.jpg"), the type of the image (JPEG) is not passed and fatal error occures: PHP Fatal error: Uncaught Exception: Invalid parameters passed. (in ...vendor/phpoffice/phppresentation/src/PhpPresentation/Writer/PowerPoint2007/ContentTypes.php:154)

I've been using v0.6.0 before and the bug did not exist then.

premax avatar Dec 05 '20 16:12 premax