Created on 14 January 2020
icon_unfollowing
Login to follow
html-2-image

Html 2 Image

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded on 14 January 2020 by 
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.
Category
Functional libraries & utilities, PDF & file converters
Tags
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
Html 2 Image has no dependencies.
Application Objects
Html 2 Image has 1 AOs.
Team
Compatible with
Version 11
11.9.2 or higher
11.7.6 to 11.9.0
11.0.528 to 11.0.615
Database:
All
Asset consumers
See all 1 consumers
Weekly downloads