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
0 answers

How to convert authenticated html web page to image using ruby on rails application or Javascript

I have a 'design' web page which have some design templates frame with some theme images and colors. and i want to convert this web page to an image. I tried to use imgKit, wkhtml2image gem but it is only displaying Login page as image, It is not…
Bharat Bhushan
  • 305
  • 1
  • 14
0
votes
1 answer

Encoding Base64 on the fly with Ruby

Our Rails project relates to invitation templates. Each card is published with attached HTML/CSS stored in the database. The design would involve use of multiple fonts. They are set as below for each card and stored in the DB. **`@font-face {…
Mohan Rao
  • 21
  • 2
0
votes
1 answer

Using Google Maps in wkhtmltoimage / imgkit

Is it posible to create an image with IMGKit with google maps on it? The problem is that i need to 'include' some javascript, but with IMGKit you can't include javascript from a remote server. Is there a way to include: = javascript_include_tag…
Stone
  • 2,912
  • 1
  • 21
  • 18
0
votes
1 answer

Rails - IMGkit - Errno::EACCES Permission denied error

I am using IMGkit gem in my rails project. I also installed wkhtmltoimage-binary which is necessary for IMGkit to work. Both IMGkit and wkhtmltoimage-binary are installed via gemfile. Under config/initializers/imgkit.rb i have IMGKit.configure do…
Praveen KJ
  • 630
  • 2
  • 11
  • 22
0
votes
0 answers

error creating image from html using imagekit and wkhtmltoimage on centos server in rails 4

I am using imagekit and wkhtmltoimage to convert html to image. On my local server I am using ubuntu 14.10 and its working fine. But the live server is centos 6 and when I move the code to live server it is showing following libjpeg error: error…
0
votes
0 answers

Issue converting aspx file to image

I've been using TuesPechkin to create images of some HTML code from my application. I'e been using the following code successfully when using HTML, but if I try to load ASPX files instead, the code doesn't work. var htmlDocument =…
Zelig880
  • 500
  • 4
  • 6
0
votes
1 answer

php wkhtmltoimage listen for alert from url for screenshot

Im using wkhtmltoimage to take a screenshot of a page but my issue is that the page that loads for the screenshot sends out a alert with some details about croping that i need to listen for. Does anyone know how i can listen for the alert with…
Yeak
  • 2,470
  • 9
  • 45
  • 71
0
votes
4 answers

Screenshot of website using PHP

Working on a small concept of taking screenshots of website by url now. By referring lot of websites used wkhtmltoimage. Currently using Mac. Installed wkhtmltoimage successfully, Also tried wkhtmltoimage www.google.com ggss.png in terminal. It…
Karthik Nk
  • 377
  • 1
  • 8
  • 25
0
votes
1 answer

wkhtmltoimage convert html to image Perl and Centos

I am trying to use wkhtmltoimage to convert html and web pages to images using Perl module WKHTMLTOPDF. The script and code below works from the command line but does not work if I call the script from browser. Update: If I run the script from the…
daliaessam
  • 1,636
  • 2
  • 21
  • 43
0
votes
1 answer

wkhtmltoimage make sharpen screenshots

It works. Make screenshots. But make it like any sharpen artefacts. Why? Maybe because wkhtmltoimage running without X? Where try get information? How to smooth screenshot via wkhtmltoimage? This Firefox and Chromium 800x420:…
Deep
  • 2,472
  • 2
  • 15
  • 25
0
votes
0 answers

wkhtmltoimage - image is not being resized

I'm trying to create an image with custom width like 289. The problem is that appears that minimum size is 550. If i choose a size lower then it, the wkhtmltoimage just 'cut out' a part of my image instead do a resizing. Anyone knows how to force…
user866364
0
votes
2 answers

How do I convert Protocol Relative URLs to standard HTTP?

I'm working with the wkhtmltoimage utility which does not support protocol relative URLs such as this: I need to convert it to:
kartikluke
  • 2,375
  • 1
  • 19
  • 32
0
votes
2 answers

Installing wkhtmltopdf and wkhtmltoimage on SmartOS (Joyent)

How can I install wkhtmltopdf and wkhtmltoimage on SmartOS (Joyent)? I would like to use these with the node-wkhtml module.
Justin Elkow
  • 2,833
  • 6
  • 28
  • 60
0
votes
2 answers

how to install wkhtmltopdf 0.12.0 on centos 6

How can wkhtmltoimage 0.12.0 be installed on centos amd64? Thank you!
Tomukas
  • 155
  • 1
  • 2
  • 8
0
votes
1 answer

undefined method `to_file' for # - IMGKit

I'm trying to take snapshots from some websites but I'm having some problems with IMGKit. When I try to run this code on a Rails Task: kit = IMGKit.new('http://www.adlibituradventures.com/') kit = kit.to_img(:jpg) file_path =…
Paladini
  • 4,522
  • 15
  • 53
  • 96