-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
AddImage using value from PHP Object #2285
Comments
#0 /public_html/acq-trello/vendor/phpoffice/phpword/src/PhpWord/Element/Image.php(149): PhpOffice\PhpWord\Element\Image->checkImage() |
Describe the Bug
I am trying to create a word document using data from the Trello API.
The API can provide a partial URL for an avatar image. The full image URL can be derived from this by adding on details of the image size.
So the API provides something like this
"avatarUrl": "https://trello-members.s3.amazonaws.com/6059dd69783e1b38da09a50c/acdc216e9c555d2f9a9a5aaf6183775f"
and the full URL is
"https://trello-members.s3.amazonaws.com/6059dd69783e1b38da09a50c/acdc216e9c555d2f9a9a5aaf6183775f/50.png".
Whenever i try to use the object value to derive the image URL and use this in an addImage call I get a 500 error.
Steps to Reproduce
I my addImage call is in a foreach loop where I iterate through card members.
Expected Behavior
PHPWord recognises the image URL and adds image to document
Current Behavior
500 Internal Server Error
Context
Please fill in your environment information:
The text was updated successfully, but these errors were encountered: