Function Details

HTML to Image

Given a html string this function will simulate a browser rendering the html and then take a screenshot of each section starting from the top of the page all the way to the bottom.

Output

This node returns a list of image data URLs or a single image data URL if the first_image_only parameter is set to true.

Example

[
    "data:image/png;base64,iV...",
    ...
]

if first_image_only is set to true:

data:image/png;base64,iV

Usage

This function can be used to convert html to image for analysis by a Chat Model.