I am trying to convert HTML to an image.
wkhtmltopdf works great to convert them to PDFs. The sister product wkhtmltoimage, however, is driving me crazy.
With both wkhtmltoimage-amd64 and wkhtmltoimage-i38, images created by JavaScript are not included in the image, and I get the following errors:
Code:
[root@localhost bin]# /usr/bin/wkhtmltoimage-amd64 http://www.highcharts.com/demo/area-basic test.jpg
Loading page (1/2)
QPixmap: Cannot create a QPixmap when no GUI is being used ] 89%
Segmentation fault
[root@localhost bin]#
The wkhtmltopdf which is working is version 0.9.9, and was installed using
http://www.amberdms.com/?cms=opensou...x_repositories.
The wkhtmltoimage which isn't working is version 0.11.0_rc1 Linux Static Binary (amd64) and was installed using a static binary found at
wkhtmltopdf.
My operating system is Linux localhost.localdomain 2.6.18-308.11.1.el5 #1 SMP Tue Jul 10 08:48:43 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
Please provide any suggestions.
Thank you