html-2-image
Reactive icon

Html 2 Image

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 14 January 2020
 by 
4.8
 (5 ratings)
html-2-image

Html 2 Image

Details
Converts a div container into a binary image. Supports png, jpg, gif and bmp output formats.
Read more

Converts an Outsystems div container into a binary image or a base64 image. 

Supports png, jpg, gif and bmp output formats.

Based on http://html2canvas.hertzen.com/ script.

Release notes (1.0.0)
Reviews (1)
by 
2023-03-24
in version 1.0.0
Useful component that works well, however the JS in it must be updated to the latest version from the source https://html2canvas.hertzen.com.
I made it work properly with the version: html2canvas 1.4.1 only (used the html2canvas.min.js).
I was able to add some variables to control size and resolution of the resulting image.
In some cases it proved best to render the desired container to a plain fully flexible page and export it out of that. Play with WindowWidth and Scale parameters to obtain desired png resolution. In my cases I used WindowWidth = 1000/1500/2000 and Scale = 1.5/2 to get sufficient resolution.
Team
Other assets in this category