-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Support EMF image #490
Comments
@erswelljustin Which sample.pptx do you use ? |
I have the exact same issue, with practically the exact same code. Stackoverflow suggests that the imagecreatefromstring function only handles several image formats. |
@MrAlexEvers Have you got a sample file ? |
@Progi1984 The presentations I'm using are from my client, which I fear I am not at liberty to share. |
Thanks. I will transform in feature request. References : |
Feel free to get inspiration from https://github.com/nikolajlovenhardt/PHPPresentation/releases/tag/0.10.0 I added support for the TIFF format by converting the image using Imagick. |
@erswelljustin @MrAlexEvers @nikolajlovenhardt If you have a basic file with EMF/WMF image, I'm interested to add this feature to the reader of the library. |
@Progi1984 What a blast from the past, this was a request from 5 years ago. I eventually also used an image converter for my EMF issue. |
@MrAlexEvers Sorry. I'm mainly alone for maintaining this library. If you have a file, I can continue on it. |
@Progi1984 I've since given up my developer carreer, I'm afraid. |
@MrAlexEvers No problem. Thank you for your answer. |
Partially linked to #756 New repository : https://github.com/PHPOffice/WMF
|
I am trying to use PhpPresentation to read a
sample.pptx
file using the simple instructions for readers in the docs and I am getting:imagecreatefromstring(): Data is not in a recognized format
I have checked that I have PHP7.2-gd installed and all of the other dependencies.
My Code:
Can anybody help me understand the issue?
The file with the issue is
vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint2007.php
The text was updated successfully, but these errors were encountered: