-
Notifications
You must be signed in to change notification settings - Fork 647
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
Image not render #940
Comments
change the https to http to test |
@carlosmedrano27 I did a quick test with this on the command-line, and think I discovered what's going on. echo "<img alt='logo' style='width: 10%; height: 100%;' src='https://collegeengine.blob.core.windows.net/media/images/logos/CE-Icon_4C.png'>" > test.html
wkhtmltopdf test.html out.pdf will not output your image either, telling me this is not a problem with Trying to reduce the variables involved, when I removed the echo "<img alt='logo' src='https://collegeengine.blob.core.windows.net/media/images/logos/CE-Icon_4C.png'>" > test.html
wkhtmltopdf test.html out.pdf I was able to add back in the width style with It doesn't even seem to matter if it's in a proper HTML document with doctype & body within a div with a fixed height; it just seems to not like setting a height of 100% on an image in any circumstance I've tried. It seems to behave the same with I would suggest you report this to the wkhtmltopdf issue tracker as this could be a legitimate issue, and I'm stumped to why this might be happening. Please link the issue here, so I can keep track of it, too. Of course you can work around it by omitting that height style in the meantime, as images should be 100% height in relation to the width anyway. |
Thanks for your help @unixmonkey, I submitted the issue on the link you provide me, the issue I created is the #4832 |
Issue description
I'm using a simple
and did not work
Added the two gems
Expected or desired behavior
The image should be included in the pdf
System specifications
wicked_pdf gem version (output of
cat Gemfile.lock | grep wicked_pdf
):wicked_pdf (2.1.0)
wkhtmltopdf version (output of
wkhtmltopdf --version
):wkhtmltopdf 0.12.3.2
The text was updated successfully, but these errors were encountered: