- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 wkhtmltoimage 并且一切顺利,直到我要求它做 twitter 的屏幕截图并且我得到这个奇怪的错误:
Loading page (1/2)
WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Rendering (2/2)
Done
xvfb-run wkhtmltoimage --format png --quality 100 http://twitter.com/jnbdz twitter2.png
xvfb-run wkhtmltoimage --format png --quality 100 http://yahoo.com/ yahoo1.png
Loading page (1/2)
Error: Failed loading page http://yahoo.com/ (sometimes it will work just to ignore this error with --load-error-handling ignore)
Error: Failed loading page http://yahoo.com/ (sometimes it will work just to ignore this error with --load-error-handling ignore)
最佳答案
好的,所以,按顺序:
1/wkhtmltoimage 使用 Webkit,它可能出于多种原因加载 Phonon。例如,为了呈现多媒体 Web 内容。不过,这不是很重要。
2/一些与音频相关的 Phonon 功能需要设置应用程序名称。您可能不需要这些功能来呈现 Web 页面,因此不必担心该警告。
3/Phonon 尝试连接到 Jack 音频服务器失败,大概是因为它扫描可用的音频输出系统。无论如何您都不需要音频,因此您也可以忽略这些错误。
4/据我所知,Twitter 大量使用 JavaScript 进行渲染。我不知道 wkhtmltoimage 附带一个 JavaScript 解释器。因此几乎可以保证渲染问题。
您必须了解 wkhtmltoimage 中使用的方法有些原始并且不是很健壮。在许多情况下它会失败,首先是在处理动态内容时。
您可能会在 http://mobile.twitter.com/ 使用移动版本获得更好的运气。 , 尽管。
至于雅虎错误,它们似乎是与上述任何一个无关的连接错误。
关于qt4 - wkhtmltopdf 好像需要 Phonon 需要 QCoreApplication::applicationName;为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8274942/
在引用此文档pressable docs之后,我将Pressable用于按钮 现在,我想向按钮添加波纹效果,但是它无法正常工作。 Button 如果按钮具有
在 C# 中,我想制作“智能”枚举,这在 Java 中是可能的,其中有更多信息附加到枚举值,而不仅仅是底层 int。我偶然发现了一个创建类(而不是枚举)的方案,如以下简单示例所示: public se
当执行 git stash 时,会创建 2 个提交。一个被 stash ref 引用并且有 2 个父提交。一位 parent 是我们 stash 地点的索引。另一方拥有我们 stash 的实际内容。
我是一名优秀的程序员,十分优秀!