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
14
votes
4 answers

Convert HTML To Image in .NET Core

I want to convert HTML code to Image(png/jpg) on Web Server and then send image link in email in my .NET Core application. I don't want to purchase any third party library like NReco or EVo. Is there any other way to convert HTML To Image in dotnet…
N P
  • 165
  • 1
  • 1
  • 6
13
votes
1 answer

Blurry corners and poor rendering when using Phantomjs (or wkhtmltoimage) screengrab on Docker

I'm trying to generate images (jpg or png) from HTML and I've already tried PhantomJS (via jonnyw/php-phantomjs in php) and wkhtmltoimage but they both have the same problem when generating the image. Any border radius, images, or fonts all have…
john
  • 1,280
  • 1
  • 18
  • 48
13
votes
7 answers

Install WKHTMLTOX (WKHTMLTOPDF + WKHTMLTOIMAGE) on AWS ElasticBeanstalk

I need WKHTMLTOX to be installed with my AWS EB app. I found this tutorial and it works except it supports old version. Did anyone install the latest (0.12.3) version on AWS EB as this is a bit different folders structure?
Strabek
  • 2,391
  • 3
  • 32
  • 39
13
votes
3 answers

Setting a resolution for xvfb-run and wkhtmltopdf / wkhtmltoimage

I'm trying desperately to give xvfb-run some resolution arguments to take screenshots of websites with wkhtmltox in different resolutions. I'm using both xvfb-run and wkhtmltox on CentOS. xvfb-run --server-args="-screen 0 1024x768x24" wkhtmltoimage…
Tomukas
  • 155
  • 1
  • 2
  • 8
12
votes
4 answers

How to deal with ContentNotFoundError when using wkhtmltopdf?

Can someone tell me how to resolve following issues? wkhtmltopdf don't have option to pass proxy info (-p or --proxy) unlike in previous versions and its not using system $http_proxy and $https_proxy env variable too. wkhtmltopdf not working with…
Murali Mopuru
  • 6,086
  • 5
  • 33
  • 51
12
votes
2 answers

Using wkhtmltopdf on Windows

I am trying to set up the nifty HTML to image plugin called wkhtmltopdf and I am having a really difficult time. What I did so far: Downloaded wkhtmltopdf zip package and upacked the file in my websites root folder As a test I included the…
AnchovyLegend
  • 12,139
  • 38
  • 147
  • 231
8
votes
2 answers

How to run custom Javascript on Wkhtmltopdf/wkhtmltoimage?

I want to run a javascript on a website, but when I do it, nothing changes, I get the pdf as if I run no result of the javascript on it, this is an example of what I do: xvfb-run --server-args="-screen 0, 1024x768x24" wkhtmltoimage --run-script…
aDoN
  • 1,877
  • 4
  • 39
  • 55
7
votes
1 answer

how to instruct wkhtmltoimage (not pdf) to render a high dpi image?

Hi I'm trying to use wkhtmltoimage to generate a JPEG format image. I've tried --dpi then got Unknown long argument --dpi.
Liam
  • 71
  • 1
  • 4
6
votes
3 answers

wkhtmltoimage rendering colored noise for transparent PNGs

I'm trying to render a HTML page as a PNG with transparency enabled. This is the command that generates the images: /usr/local/bin/wkhtmltoimage-amd64 --transparent --crop-h 300 --crop-w 210 temporary.html image.png I have also tried enabling the…
Bornfree
  • 868
  • 7
  • 21
5
votes
2 answers

wkhtmltoimage CSS3 gradient rendering in Snapshots

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. I tried using on Ubuntu and Windows but am not able to find the error. I even tried using the…
Kshitiz
  • 2,852
  • 5
  • 32
  • 41
4
votes
0 answers

Program locks up but NOT when run through strace

I am doing server-side rendering with wkhtmltoimage and each run is locking up at "88% loading" for 1-2 minutes. I decided to debug what was happening through strace but in a completely bizarre twist the program did NOT lock up. I've found this to…
SpliFF
  • 38,186
  • 16
  • 91
  • 120
4
votes
1 answer

copy/ install wkhtmltoimage on heroku from heroku bash

i am using wkhtmltoimage for my app.While deploying it to heroku it shows wkhtmltoimage executable not found in /usr/local/bin means that i have to install or copy executable to the heroku 's local/bin folder how can i install or copy from heroku…
4
votes
3 answers

How to specify size when taking screenshot in wkhtmltoimage?

This is my first time using wkhtmltoimage. I am trying to take screenshots of urls. But I need the images to be of width 1024 and height 768; is it possible? Currently it is giving me an image of width 1024 and height 431. The command I am current…
odbhut.shei.chhele
  • 5,834
  • 16
  • 69
  • 109
3
votes
2 answers

Argument list too long error for wkhtmltoimage

I want to capture the screen and store it to to the server. I have used the below command to achieve the screen capture in my php code. $exec_command = "wkhtmltoimage --quality 10 --window-status 'wbcaptureready' --width 1200 --post 'estr'…
Ravichandran Jothi
  • 3,028
  • 11
  • 52
  • 82
3
votes
0 answers

IMGKit displays blank image

My application has an activities database, and I'm trying to use IMGKit to render the show view of an activity as an image file that can be then used on other platforms. I feel like I've implemented IMGKit properly, but all I'm getting is a blank…
Jim
  • 41
  • 4
1
2 3 4 5 6 7 8