快照中的 wkhtmltoimage CSS3 渐变渲染 [英] wkhtmltoimage CSS3 gradient rendering in Snapshots
问题描述
我正在使用 wkhtmltoimage 为我的网站渲染包含背景渐变的快照,但它没有显示在生成的快照中.
I am using wkhtmltoimage to render a snapshot for my website which contains a background gradient but it doesn't show up in the generated snapshot.
我尝试在 Ubuntu 和 Windows 上使用,但找不到错误.
I tried using on Ubuntu and Windows but am not able to find the error.
我什至尝试使用不带任何参数的最简单命令.
I even tried using the simplest command without any parameters.
wkhtmltoimage.exe <website_link> <image_name>
我的原始页面在所有主要浏览器中看起来都一样这是屏幕打印
My original page looks same in all major browsers Here is the screen print
这是由 wkhtmltoimage 生成的
And here is the one generated by wkhtmltoimage
我不确定到底是什么问题.我也尝试查看他们现有的问题,但找不到任何内容.
I am not sure what exactly is the problem. I tried looking at their existing issues as well but couldn't find anything.
推荐答案
作为 wkhtmltopdf 的 0.12.2.1 渐变 css - 无论是旧的还是新的都不起作用.
As as 0.12.2.1 of wkhtmltopdf the gradient css - either old or new doesn't work.
这篇关于快照中的 wkhtmltoimage CSS3 渐变渲染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!