Questions tagged [wkhtmltoimage]

1

votes
0

answer
41

Views

wkhtmltoimage Could not find the ColdFusion component or interface base

I am trying to use wkhtmltoimage with Abram Adams image.cfc. I keep getting the error 'Could not find the ColdFusion component or interface base'. My code is below: wkhtmltoimage = new customdesigner.com.wkhtmltoimage(binaryPath = 'C:\Program Files\wkhtmltopdf\bin\wkhtmltoimage.exe'); image = wk...
SGekko
1

votes
0

answer
34

Views

wkhtmltoimage rendered only bar instead full page

I have a problem with wkhtmltoimage 12.4 and the newest alpha version. I tried to save H&M webpage, but I only get a little bar instead full webpage. I tried use many of switches to change settings but nothing works. Is there any solution for achieve correctly webpage in png format? Thanks very much...
Algeroth
1

votes
2

answer
959

Views

Wrong Font rendering wkhtmltopdf

we are using wkhtmltopdf and wkhtmltoimage the latest version (0.12.3). And got a problem with the 'Frutiger Neue LT W1G Bold' font. It does work on all normal browsers but after creating a image or pdf with the above mentioned libraries it renders the '0'-char wrong (it has strange roundings inside...
Pomm0
1

votes
2

answer
152

Views

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/ < ?php $webpageURLWithChart = 'mychart.php'; $outputImageFil...
gtroop
1

votes
2

answer
0

Views

Setting options in phpwkhtmltoimage

I am trying to reduce the file size of images outputted from phpwkhtmltoimage (php wrapper for wkhtmltopdf) The image is being saved fine, but the image outputted is exactly the same as having no options set. I am guessing that I am doing something wrong here. $options = array( '--dpi 300', 'no-outl...
Ryan NZ
1

votes
2

answer
906

Views

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 converting them to PDFs with http://code.google.com/p/...
user1032531
1

votes
2

answer
628

Views

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 video in my case are not working only in server (Ama...
HBK
1

votes
1

answer
659

Views

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 same. The only difference I can see is that when I ru...
Joe
1

votes
1

answer
1.4k

Views

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 versions and I got same result: 'wkhtmltoimage-i38...
Telvin Nguyen
2

votes
3

answer
963

Views

Convert HTML To Image in .NET Core 2.0

I want to convert HTML code to Image(png/jpg) on Web Server and then send image link in email in my .NET Core 2.0 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 core 2.0?
N P
3

votes
1

answer
95

Views

wkhtmltoimage does not show gridlines of highcharts graph

I'm using symfony to generate a simple highcharts graph, but wkhtmltoimage does not show the gridlines properly: My knp_snappy.image config is the following: options: encoding: UTF-8 format: svg width: 0 enable-smart-width: true zoom: 3 and I have ad...
Luca Galasso
2

votes
1

answer
1k

Views

Using wkhtmltoimage from wkhtmltopdf

I read in their documentation that wkhtmltoimage is inside wkhtmltopdf, so I installed wkhtmltopdf using apt-get, because that's the only way I could get all dependencies working. Now I can use wkhtmltopdf, but when I use wkhtmltoimage, I keep getting that command was not found. Why is that so? How...
Karol Hernik
11

votes
2

answer
18.8k

Views

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 following code in my index.php file, which I would expect t...
AnchovyLegend
2

votes
2

answer
1k

Views

Html Render to Image (C#/Net) WITHOUT using WebBrowser

I have html string/document (if you view source any web page in the IE browser, the resulting html code) stored in the database and I need to convert this html to an image using C#/.Net wcf service. The current code is using WebBrowser and it works fine except it is pretty slow and runs into issues...
SJamal
2

votes
0

answer
456

Views

How to cache asset files when batch creating thousands of PDFs using wkhtmltopdf?

We are using the excellent wkhtmltopdf to render PDFs from HTML web pages on our website. We need to render and store about 10,000 PDFs in a single batch job. This poses a problem. Gathering the JS, CSS and image assets required for every PDF via HTTP is going to be very slow - is there a way to c...
promethean
2

votes
1

answer
3k

Views

Add a header to wkhtmltoimage

I am trying to add some text the top of an html image using wkhtmltoimage. I am not sure if I am using the right argument. At the moment, I am failing with... wkhtmltoimage --custom-header helloworld http://www.google.com google.png The help file suggests I need a value after the text. It is not cle...
gjabel
3

votes
3

answer
5.5k

Views

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 using is 'C:/Program Files (x86)/wkhtmltopdf/wkhtml...
eddard.stark
6

votes
3

answer
609

Views

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 format parameter. /usr/local/bin/wkhtmltoimage-amd64...
Bornfree
13

votes
1

answer
512

Views

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 really bad jagged edges and aren't crisp at all. At f...
john
7

votes
4

answer
2.6k

Views

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
5

votes
1

answer
628

Views

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
4

votes
1

answer
527

Views

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 bash to /usr/local/bin folder
Anish Shah
3

votes
2

answer
1.5k

Views

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 simplest command without any parameters. wkhtmltoimage.ex...
Kshitiz Shankar
3

votes
1

answer
1.2k

Views

Generate Image and PDF with custom fonts using wkhtmltoimage and wkhtmltopdf (Linux centos6 64-bit, hostgator )

I am stuck to generate image using wkhtmltoimage with my custom fonts. OS Linux CentOs 64-bit wkhtmltoimage and wkhtmltopdf version is 0.11.0_rc1-static-amd64 Example of Expected Result: and My OUTPUT is: You can test this link: After Googling, I found that by encoding the fonts with base64 you ca...
akash varlani
2

votes
0

answer
283

Views

what support does wkhtmltoimage have for colour profiles

On a page converted to an image with wkhtmltoimage: If images on the page contain colour profiles (sRGB, for example), will the profiles be taken into account in the rendered image? If images on the page contain multiple embedded colour profiles (sRGB and Adobe RGB, e.g.) which one (if any) is used?
Mike Trpcic
3

votes
1

answer
2.6k

Views

Html To Image Using NReco.ImageGenerator : C#

Introduction I am working with the functionality where we can convert 'html' to image.For image creation, i use 'Image' function(of System.Drawing). Functionality working fine(including html styles etc) except for one thing i will describe later in problem. Problem Problem appears When using Non-eng...
Suhail Mumtaz Awan
2

votes
1

answer
91

Views

wkhtmltopdf and MathJax: equations are rendered too small

I am trying to download the Feynman lectures using wkhtmltopdf. This is the command line that I use: wkhtmltopdf.exe http://www.feynmanlectures.caltech.edu/I_44.html --javascript-delay 20000 --no-stop-slow-scripts ./out/I_44.pdf However the MathJAX formula are rendered too small. Here is a picture:...
raffamaiden
3

votes
0

answer
324

Views

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 be completely repeatable and consistent. Why on eart...
SpliFF
2

votes
1

answer
169

Views

htmlToImage Chrome 64 SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules

The new Chrome 64 security update seems to have broken the htmlToImage libraries. None of the styling is correctly calculated and is rendered as if no styling was applied at all. Does anyone know of a workaround / fix? Do I need to put my CSS on the server and allow CORS?
mcottingham
5

votes
2

answer
10.8k

Views

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 'javascript:(\$(function(){ \$('div').hide() ;}))' go...
aDoN
2

votes
0

answer
652

Views

wkhtmltoimage Occasionally Freezes

What steps will reproduce the problem? 1. Install/compile using scripts/static-build.sh, using 'linux-local' 2. Run something like: '/usr/local/bin/wkhtmltoimage 'http://www.rawartists.org/scripts/event-flyer.php?url=http://www.rawartists.org/philadelphia/menagerie&image=true' test.jpg What is the e...
redrom
2

votes
0

answer
394

Views

Executing wkhtmltoimage from PHP hangs

Executing wkhtmltoimage from PHP it just hangs. $command = 'wkhtmltoimage --format 'png' '' . $url . '' '' . $output . '''; exec($command); It hangs until PHP times out. I can run the same command from the CLI directly and it works fine. I have also tried: adding 2>&1 and >nul 2>&1. using shell_exec...
Petah
1

votes
4

answer
3.8k

Views

wkhtmltoimage's out put is NULL

i was trying to use the wkhtmltoimage on my site but is not working here is my code for the test site the output is just a blank page. the funny thing is when i run the shell_exec(ls -l); instead of the shell_exec('/usr/local/bin/wkhtmltoimage --quality 95 --width 1024 --height 0 yahoo.com test1.j...
tad
2

votes
1

answer
32

Views

Font size too small when rendering with wkhtmltoimage

My goal is to render text into an image. I'd like the layout and size to be static and the font size to adjust to how much text is to be rendered. My tool of choice is wkhtmltoimage 0.12.5, the idea being that this way I can make use of the many css styling options. I am on a Mac btw. Here is my Tes...
Sandro
2

votes
0

answer
231

Views

wkhtmltoimage not working on Polymer website

I'm trying to capture an image of a website using wkhtmltoimage. It is not working for webpages built using Polymer. For example, wkhtmltoimage https://elements.polymer-project.org/browse?package=google-web-components aaa.jpg leaves me with a long white rectangle for an image. I am getting similar r...
wogsland
6

votes
2

answer
7.3k

Views

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 http://www.whatismyscreenresolution.com/ /tmp/bla.p...
Tomukas