Render HTML
the render html connector converts html content into jpg images for consistent email visualization the render html connector allows swimlane turbine users to convert html content into jpg images, facilitating secure email visualization this integration provides a streamlined method to handle html data, ensuring that external requests are blocked, javascript is disabled, and local file access is restricted, enhancing security by leveraging this connector, users can automate the rendering process, customize image output, and manage blocked html elements efficiently, all within the swimlane turbine platform prerequisites before you can use the render html connector, you'll need to set up authentication this requires the following http basic authentication using the following parameters username required for basic authentication password required for basic authentication capabilities render html content to a jpg configurations http basic authentication authenticates using username and password configuration parameters parameter description type required url a url to the target host string optional username username string optional password password string optional verify ssl verify ssl certificate boolean optional http proxy a proxy to route requests through string optional actions render html convert provided html content into a jpg image for email visualization requires html data as input endpoint method get input argument name type required description html data string required html data to render disable local file access boolean optional disable access to files on the local machine (might be needed for images) disable javascript boolean optional disable javascript block external requests boolean optional remove all html tags that make external requests handle blocked elements string optional to be used only when external request are blocked by default, source attribute is removed no images boolean optional no images in output, defaults to true show base64 boolean optional show base64 data for rendered file show html boolean optional show processed html used to render image max size string optional two integers, comma separated for the width & height of the thumbnail defaults to 800,600 render timeout integer optional maximum seconds to wait for wkhtmltoimage to finish rendering if exceeded, the action fails fast with an error instead of consuming the platform's 900s budget useful in egress restricted environments where external resource fetches (e g remote @font face urls, css background images) may hang indefinitely defaults to 120 seconds form fields object optional parameter for render html form fields files array optional parameter for render html form fields files file string optional parameter for render html form fields files file name string optional name of the resource input example {"html data" "string","disable local file access"\ true,"disable javascript"\ true,"block external requests"\ true,"handle blocked elements" "string","no images"\ true,"show base64"\ true,"show html"\ true,"max size" "800,600","render timeout" 120,"form fields" {"files" \[{"file" "string","file name" "example name"}]}} output parameter type description file object rendered image from html file file string output field file file file file name string name of the resource base64 data string response data html rendered string html content used for rendering output example {"file" {"file" "string","file name" "example name"},"base64 data" "string","html rendered" "string"} response headers header description example content type the media type of the resource application/json date the date and time at which the message was originated thu, 01 jan 2024 00 00 00 gmt