Questions tagged [wkhtmltoimage]

wkhtmltoimage is a program capable of converting HTML documents into images.

Description

Simple shell utility to convert html to pdf using the webkit rendering engine, and qt. Introduction

Searching the web, I have found several command line tools that allow you to convert a HTML-document to a PDF-document, however they all seem to use their own, and rather incomplete rendering engine, resulting in poor quality. Recently QT 4.4 was released with a WebKit widget (WebKit is the engine of Apples Safari, which is a fork of the KDE KHtml), and making a good tool became very easy.

http://code.google.com/p/wkhtmltopdf/issues/list?q=label:wkhtmltoimage

via http://code.google.com/p/wkhtmltopdf/

116 questions
1
vote
2 answers

fusioncharts and wkhtmltoimage

I'm trying to export fusionChart Images on the Server Without Rendering in a Browser.. i would like to use the image in tcpdf i followed the example here http://www.fusioncharts.com/blog/2013/03/how-to-save-charts-as-images-at-server-side/ <…
gtroop
  • 295
  • 4
  • 13
1
vote
0 answers

fwrite() returns int(0) when called

I'm trying to use fcimg and wkhtmltoimage in order to export a chart to a PDF report. I keep getting an error from fcimg saying "Fatal error: Uncaught exception 'FCImageException' with message 'There was an error with wkhtmltopdf'[...]". By…
efTobark
  • 11
  • 3
1
vote
0 answers

error while loading shared libraries: libicui18n.so.42

I am using imagekit gem for one of my projects to create image from html. Imagekit uses wkhtmltoimage to generate image from html. I have installed wkhtmltoimage using gem install wkhtmltoimage-binary. But when I try running the example…
Akhil Latta
  • 528
  • 5
  • 13
1
vote
1 answer

wkhtmltopdf - Spaces in URL

When using wkhtmltopdf I am unable to generate images when the URL contains a %20. This isn't a problem when doing the same command locally via the command line. Is there a way I can get this to work once it's online? My code so far is:
djnetherton
  • 757
  • 1
  • 7
  • 19
1
vote
0 answers

How to use wkhtmltoimage with php

I want when I run the php file that is a picture taken from the site and will appear in the php file. The image should be saved with a random name. That I have not managed it because I do not know how to do it. My actual code doesn't work too. How I…
1
vote
2 answers

webpage screenshot using wkhtmltoimage is not able to render HTML5 & utf8 in Amazon VPC ubuntu 12.04.4

Scenario: I am trying to take the screenshot of the new web application created by the user using a background process. I am using wkhtmltoimage with Xvfb. Issue: Well the screenshot process is working perfectly fine but the issue is utf8 & HTML5…
Hbksagar
  • 548
  • 7
  • 17
1
vote
0 answers

Use of custom fonts and background color with wkhtmltopdf / wkhtmltoimage

Good day I'm trying to use wkhtmltoimage (part of wkhtmltopdf) to generate screenshot of websites. I'm trying to use css with some websites, but cant manage to figure out what is wrong I've looked in the previous posts and I've generated the…
yazwas
  • 101
  • 1
  • 9
1
vote
0 answers

Image error when convert HTML to PDF in c#

I'm using 'wnvhtmltopdf' to convert HTML file to PDF. but Im facing a problem that the imags in the html file doesn't appear in the in the PDF file. any idea to resolve the problem ? if we think out of the box, is there another idea to make to…
Raed Alsaleh
  • 1,581
  • 9
  • 27
  • 50
1
vote
0 answers

wkhtmltoimage - trying to get thumbail from site hosted in the same ip

I'm trying to get site thumbnails using wkhtmltoimage It seems to be working except from sites that are being hosted in the same ip This is what i get from shell when requesting a thumbnail from another site hosted to the same server: Loading page…
Sotos Kprs
  • 11
  • 3
1
vote
0 answers

PHP GD how to gracefully handle corrupt image

I have a gallery of JPEG images I'm trying to manage using PHP's GD. One particular JPEG image is giving me trouble. It identifies itself with dimensions of 32,768 x 1,024 pixels. The image is only 1.9 MB on disk. It's handled fine by other…
curtisdf
  • 4,130
  • 4
  • 33
  • 42
1
vote
1 answer

wkhtmltoimage Segmentation Fault (core dumped) . The error came with some particular url

shttp://code.google.com/p/wkhtmltopdf/downloads/detail?name=wkhtmltoimage-0.11.0_rc1-static-amd64.tar.bz2 http://code.google.com/p/wkhtmltopdf/downloads/detail?name=wkhtmltoimage-0.11.0_rc1-static-i386.tar.bz2 I've tried with both above wkhtml2image…
Telvin Nguyen
  • 3,569
  • 4
  • 25
  • 39
1
vote
1 answer

Image is not rendering properly

I Am using WkhtmlToImage to render a web page to an image. When I run it from the command line everything works great. However, when I run it from a process started from my web app it doesn't. I have verified that the arguments I am using are the…
user60456
1
vote
1 answer

What path for wkhtmltoimage for Windows and local server?

I am running rails on a local server on windows. I installed wkhtmltoimage to C:/Sites/wkhtmltoimage Now I have to tell IMGKit where to find it, so I added a file initializers/imgkit.rb: IMGKit.configure do |config| config.wkhtmltoimage =…
user1697061
  • 255
  • 3
  • 14
1
vote
2 answers

Converting JavaScript Graphs and Charts to an image

There are many JavaScript plugins to plot charts and graphs. For examples, see http://www.queness.com/post/10781/13-chart-and-graph-plotting-javascript-plugins. I would like to create a chart and convert it to an image. I have experimented with…
user1032531
  • 24,767
  • 68
  • 217
  • 387
1
vote
2 answers

Can not run wkhtmltoimage, shared library missing libXrender.so.1

When I run the i386 version of wkhtmlimage (on Ubuntu 64 bit if that matters), I get the following error, ./wkhtmltoimage-i386 http://www.google.com google.jpg ./wkhtmltoimage-i386: error while loading shared libraries: libXrender.so.1: cannot…
Andreas Selenwall
  • 5,705
  • 11
  • 45
  • 58