# render HTML as image

**URL:** <https://forum.xojo.com/t/render-html-as-image/45260>\
**Category:** General\
**Created:** [September 11, 2018, 4:19pm UTC](https://forum.xojo.com/t/render-html-as-image/45260 "2018-09-11T16:19:46Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jeremie\_L](https://forum.xojo.com/user_avatar/forum.xojo.com/jeremie_l/32/150_2.png) [@Jeremie\_L](https://forum.xojo.com/u/Jeremie_L)\
**Post date:** [September 27, 2018, 3:02pm UTC](https://forum.xojo.com/t/render-html-as-image/45260/21 "2018-09-27T15:02:32Z")

</div>

You could try wkhtmltoimage [https://wkhtmltopdf.org](https://wkhtmltopdf.org)  
Latest version released on June 2018, so it is still maintained.

There is also [https://phantomjscloud.com](https://phantomjscloud.com) if you want to rely on an online service.

---

<div class="post-metadata">

**Author:** ![Richard\_Duke](https://forum.xojo.com/user_avatar/forum.xojo.com/richard_duke/32/246_2.png) [@Richard\_Duke](https://forum.xojo.com/u/Richard_Duke)\
**Post date:** [September 27, 2018, 3:31pm UTC](https://forum.xojo.com/t/render-html-as-image/45260/22 "2018-09-27T15:31:15Z")

</div>

[quote=407611:@Jeremie Leroy]You could try wkhtmltoimage [https://wkhtmltopdf.org](https://wkhtmltopdf.org)  
Latest version released on June 2018, so it is still maintained.

There is also [https://phantomjscloud.com](https://phantomjscloud.com) if you want to rely on an online service.[/quote]

i used wkthmltopdf for all my reporting in my applications.

what can i use wkhtmltoimage for???

---

<div class="post-metadata">

**Author:** ![Eduardo\_Gutierrez\_de\_Oliveira](https://forum.xojo.com/user_avatar/forum.xojo.com/eduardo_gutierrez_de_oliveira/32/264_2.png) [@Eduardo\_Gutierrez\_de\_Oliveira](https://forum.xojo.com/u/Eduardo_Gutierrez_de_Oliveira)\
**Post date:** [September 27, 2018, 4:28pm UTC](https://forum.xojo.com/t/render-html-as-image/45260/23 "2018-09-27T16:28:29Z")

</div>

> [@407616:@Richard Duke](#):
>
> wkthmltopdf

Another vote for WKhtmltopdf.

WLhtmltoimage is the same but with PNG/JPG/GIF as output.

---

<div class="post-metadata">

**Author:** ![Edwin\_van\_den\_Akker](https://forum.xojo.com/user_avatar/forum.xojo.com/edwin_van_den_akker/32/1063_2.png) [@Edwin\_van\_den\_Akker](https://forum.xojo.com/u/Edwin_van_den_Akker)\
**Post date:** [September 27, 2018, 5:09pm UTC](https://forum.xojo.com/t/render-html-as-image/45260/24 "2018-09-27T17:09:33Z")

</div>

[quote=407641:@Eduardo Gutierrez de Oliveira]Another vote for WKhtmltopdf.

WLhtmltoimage is the same but with PNG/JPG/GIF as output.[/quote]

And does it support transparency?

---

<div class="post-metadata">

**Author:** ![Richard\_Duke](https://forum.xojo.com/user_avatar/forum.xojo.com/richard_duke/32/246_2.png) [@Richard\_Duke](https://forum.xojo.com/u/Richard_Duke)\
**Post date:** [September 27, 2018, 5:12pm UTC](https://forum.xojo.com/t/render-html-as-image/45260/25 "2018-09-27T17:12:34Z")

</div>

[quote=407641:@Eduardo Gutierrez de Oliveira]Another vote for WKhtmltopdf.

WLhtmltoimage is the same but with PNG/JPG/GIF as output.[/quote]

is all the parameter the same as wkhtmltopdf??? will have to try it…

---

<div class="post-metadata">

**Author:** ![Eduardo\_Gutierrez\_de\_Oliveira](https://forum.xojo.com/user_avatar/forum.xojo.com/eduardo_gutierrez_de_oliveira/32/264_2.png) [@Eduardo\_Gutierrez\_de\_Oliveira](https://forum.xojo.com/u/Eduardo_Gutierrez_de_Oliveira)\
**Post date:** [September 27, 2018, 5:40pm UTC](https://forum.xojo.com/t/render-html-as-image/45260/26 "2018-09-27T17:40:54Z")

</div>

> [@407647:@Edwin van den Akker](#):
>
> And does it support transparency?

Yes, but only if backgrounds are not styled. For example. their homepage has a background for the header but not for the body: [wkhtmltopdf](https://wkhtmltopdf.org/downloads.html)

So the PNG shows the header blue and the rest transparent.

[wkhtmltoimage --transparent “https://wkhtmltopdf.org/downloads.html” wkhtmltox.png](https://www.dropbox.com/s/c9k6xdq3aiuuslx/wkhtmltox.png?dl=0)

> [@](#):
>
> ![](https://dl.dropbox.com/s/c9k6xdq3aiuuslx/wkhtmltox.png?dl=0)

---

<div class="post-metadata">

**Author:** ![Edwin\_van\_den\_Akker](https://forum.xojo.com/user_avatar/forum.xojo.com/edwin_van_den_akker/32/1063_2.png) [@Edwin\_van\_den\_Akker](https://forum.xojo.com/u/Edwin_van_den_Akker)\
**Post date:** [October 1, 2018, 2:36pm UTC](https://forum.xojo.com/t/render-html-as-image/45260/27 "2018-10-01T14:36:42Z")

</div>

> [@407654:@Eduardo Gutierrez de Oliveira](#):
>
> Yes, but only if backgrounds are not styled.

Sounds logical.

I think this is just what I need. Thanks!  
I see it is a command I run through shell. I like that. This way I can do multi-core processing.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 7:21pm UTC](https://forum.xojo.com/t/render-html-as-image/45260/28 "2020-10-29T19:21:58Z")

</div>



[Previous page](https://forum.xojo.com/t/render-html-as-image/45260.md?page=1)
