HTML to Image integration (Developer Tools, Design & Media). Imported from open-connector.
https://app.html2img.com/api/html
| Param | Type | Required | Description |
|---|---|---|---|
| html | string | required | The HTML content to render. This can include inline CSS and JavaScript. |
| css | string | optional | Additional CSS to inject before the image is rendered. |
| width | integer | optional | The viewport width in pixels from 1 to 5000. |
| height | integer | optional | The viewport height in pixels from 1 to 5000. |
| fullpage | boolean | optional | Whether to capture the full page height instead of only the viewport height. |
| dpi | integer | optional | The device pixel ratio from 1 to 4. When fullpage is true, HTML to Image forces… |
| wait_for_selector | string | optional | A CSS selector that must appear in the DOM before capture starts. |
| ms_delay | integer | optional | A fixed delay in milliseconds before capture, from 0 to 5000. |
/api/screenshot
| Param | Type | Required | Description |
|---|---|---|---|
| url | string | required | The public webpage URL to capture, including the protocol. |
| selector | string | optional | A CSS selector for capturing a specific element on the target page. |
| css | string | optional | Additional CSS to inject before the image is rendered. |
| width | integer | optional | The viewport width in pixels from 1 to 5000. |
| height | integer | optional | The viewport height in pixels from 1 to 5000. |
| fullpage | boolean | optional | Whether to capture the full page height instead of only the viewport height. |
| dpi | integer | optional | The device pixel ratio from 1 to 4. When fullpage is true, HTML to Image forces… |
| wait_for_selector | string | optional | A CSS selector that must appear in the DOM before capture starts. |
| ms_delay | integer | optional | A fixed delay in milliseconds before capture, from 0 to 5000. |