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
0
votes
1 answer

Wkhtmltoimage: how to prevent to create pdf/image from localhost/127.0.0.1?

I have a list of urls and I wat to create scrennshots with wkhtmltoimage. Some of the urls are redirected to localhost/127.0.0.1 and then I have a screenshot of my localhost (list of directories). How to prevent it?
Colargol
  • 749
  • 4
  • 14
  • 26
0
votes
1 answer

wkhtmltoimage doesn't work with websnap/imgkit on CentOs

Here is action to generate png that works in development environment. def action html = "test" snap = IMGKit.new(html, :'crop-h' => 750, :'crop-h' => 290, quality: 50) respond_to do |format| format.png { send_data…
penkovsky
  • 893
  • 11
  • 14
0
votes
1 answer

Wrap wkhtmltoimage to xvfb-run

How can I use wkhtmltoimage to run by default with xvfb? /usr/bin/xvfb-run --server-args="-screen 0, 1024x1024x24" I've to create bash file like this wkhtmltoimage /usr/bin/xvfb-run --server-args="-screen 0, 1024x1024x24"…
Sergey Prishak
  • 300
  • 1
  • 4
  • 10
0
votes
1 answer

Using typekit in wkhtmltoimage / imgkit

I am on Rails 3.2.9. Is it possible for me to use typekit (or goggle fonts) for rendering the images? I used the following code, but the images are not rendering the right fonts. I suspected the pages were not loading. html = "" html <<…
meow
  • 27,476
  • 33
  • 116
  • 177
0
votes
1 answer

wkhtmltoimage with Noejs (node-wkhtml) corrupt png using Windows stdout. Is there another way to save the file?

I am trying to convert some html to a png using wkhtmltoimage via nodejs and the node-wkhtml package. I am able to a pdf without and problem. However, when I try to make a png instead of a pdf, the png is just band of colors instead of what it…
Chad DeShon
  • 4,732
  • 6
  • 28
  • 29
0
votes
1 answer

xvfb and wkhtmltoimage always grabs images with 1024 width

Im using wkhtmltoimage to grab an screenshot from a webserver and It always gets 1024px png images. What could I be doing wrong? /usr/bin/xvfb-run.sh --server-args="-screen 0, 1280x1024x32 -ac +extension GLX +render" wkhtmltoimage --use-xserver -f…
farrusete
  • 435
  • 9
  • 24
0
votes
3 answers

Bringing wkhtmltoimage to work (Segmentation fault)

I spent the last three days trying to bring wkhtmltoimage to work on my shared webspace. I do not have root access. Hence, the wkhtmltoimage is in directly in my htdocs directory. Here's my code: shell_exec('wget…
Matt
  • 15
  • 1
  • 5
0
votes
1 answer

wkhtmltoimage generate image flie but can not show chinese character but pdf can

I used wkhtmltoimage to generate image, then I input command wkhtmltoimage http://www.baidu.com/tmp/screenshot.jpg wkhtmltopdf http://www.baidu.com/tmp/screenshot.pdf The result is Chinese character could not show. The version: wkhtmltopdf …
user1811937
  • 9
  • 1
  • 1
  • 3
0
votes
1 answer

MVC3 Deadlocks in Controller

I am trying to rasterise a map using wkhtmltoimage. I am spinning up a new process and passing it the command line arguments that are necessary to get the image that I want. I'm currently suffering from a very long pause when the process is started.…
Matt Esch
  • 22,661
  • 8
  • 53
  • 51
-1
votes
1 answer

How to print bitmap without zoom from MVC controller in Debian

Document is printed from MVC controller to Debian Squeeze Linux server printer using code below in Mono. Page in printer is A4. Printed text in paper is too big and unsharp. Rightmost part of text is not visible since it does not fit to page. If…
Andrus
  • 26,339
  • 60
  • 204
  • 378
-1
votes
1 answer

How to install wkhtmltoimage on a linux based web server

I just want to know how to install wkhtmltoimage into my Linux shared hosting server. I am newbie and dont how to start doing this. Can anyone explain step by step.
Akash Sharma
  • 801
  • 1
  • 9
  • 19
1 2 3 4 5 6 7
8