2

Is subject exists? The hard way is to convert html to pdf, and then pdf to jpg, but it is unwanted for web-based service.

Valentin Kantor
  • 1,799
  • 1
  • 23
  • 27
  • The problem is that you would need some HTML rendering engine that renders the HTML first. For example WebKit, or the Gecko rendering engine would work. – poke May 29 '11 at 16:08
  • I can install any render I want on my own server, so I need a way to convert generated html into image – Valentin Kantor May 29 '11 at 16:13

1 Answers1

5

You can use the webkit2png python library to achieve this.

https://github.com/AdamN/python-webkit2png/

rzetterberg
  • 10,146
  • 4
  • 44
  • 54