-
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
TemplateProcessor->setImageValue() #1170
TemplateProcessor->setImageValue() #1170
Conversation
But what about #1084 ? That one has more functionality. However, both suffer from: Not using the PHPWord()->addImage() to make an image and let that part handle all the parameters you can give it. I appreciate your time and you sharing your good code, though. |
@FBnil You can choose the best for your self :) |
…com/SailorMax/PHPWord into template_processor__set_image_value
dude @SailorMax just wanted to say thank you for this ;) really help me out with your branch |
@kaioken |
I need to approval this request to resolve the same issue. Could you please help us? |
…ment to depend on MIME type. This same logic is used in Element/Image.php
…value Changed logic that determines the extension of image file
@SailorMax There's a problem with the variables thats being written from the PHPWord here's a snippet.
Whenever it is written with phpWord, it won't change the variable with image. Works fine on setValue() |
Hi all! |
Just see the readme.md
… 在 2018年1月31日,下午8:05,olegmifle ***@***.***> 写道:
Hi all!
Can anybody help me to install this fork via composer.json?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#1170 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABmWYV0hQyFuCbkAdis1RiSgHoMofyNNks5tQFcXgaJpZM4QF2ZH>.
|
@Skeptron
On php side:
Brief documentation: |
@SailorMax Thanks a lot, you rock! |
Sorry to ask one more thing, but is there a way to keep original image size without having to code it? For some reason imported images are always very small. I can fix this by manually setting their size, but it's quite a hasstle considering I have 160+ images to import. Is there any way to say "keep the orginal size when importing"? Thanks a lot |
@Skeptron Currently you can get size by getimagesize() and setup it on php side. For better solution I need time to think :) |
why in mw project |
@ekohere Possible because this pull request is still unmerged with your 0.15 |
what last version has support setImageValue? |
is there another way to insert images through the TemplateProcessor? |
@ekohere While this pull request not merged, no one version contain it. |
Would be great if that could be merged. |
hi, I'm using phpword to insert image with setImageValue, I don't know but the first image don't show and the file word is corrupt |
Can you share the sample of source document? |
Hi, I have this code to add an image to a document, |
The issue was with the image path, it appears it has to be a relative not absolute path. Correctly setting this path resolved the issue I faced and the image was set. Nothing invalid about it. |
Allow to put images in templates.
Fixes #1079
Fixes #939
Fixes #708