Actions3
- Image Actions
Image → Convert to WebP
AI-generatedSummary
Convert an inline-styled HTML string to a WebP image with specified dimensions, quality, and background color, storing the resulting image in a binary property.
Inputs
- HTML Content (required) — HTML string containing only inline styles (no full HTML documents, external CSS, or pseudo-classes).
- Width — Width of the output image in pixels (100-4096). Defaults to 1200.
- Height — Height of the output image in pixels (100-4096). Defaults to 630.
- Quality — Quality of the output WebP image from 0 (lowest) to 100 (highest). Defaults to 80.
- Binary Property Name (required) — Name of the binary property to store the generated image. Defaults to 'data'.
- Background Color — Background color of the image; supports 'transparent', 'white', hex (#RRGGBB), or rgba(r,g,b,a). Defaults to transparent.
Output shape
a list of items each containing the original JSON and a binary property with the generated WebP image
Inputs with invalid HTML or unsupported CSS will cause errors unless 'Continue On Fail' is enabled, in which case error details are included in output. The operation uses the Satori library and supports only the HTML body content with inline styles (no full documents or CSS pseudo-classes). The image is rendered to WebP considering the specified quality and backgroundColor.
