Image Sharp V2 icon

Image Sharp V2

Execute operations using Sharp

GENERATE FROM SVG

AI-generated

Summary

Generate a PNG image from an SVG string input, returning the image as binary data in a specified binary field.

Inputs

  • Input Binary Field (required) — The name of the output binary field that will contain the generated PNG image.
  • SVG String (required) — The SVG markup string to be converted into a PNG image.

Output shape

A list of items, each containing JSON with a processing message and binary data of the generated PNG image under the specified binary field name.

Processes each input item separately; errors on individual items can be handled based on the node's continueOnFail setting. The output binary data is always in PNG format with filename 'nome-do-arquivo.png'.

Examples

Example 1: Convert an SVG markup to PNG image data

Set 'SVG String' to the SVG content; set 'Input Binary Field' to the desired output binary property name, e.g., 'data'. The node outputs an item with the PNG image binary data under that property.

Links

Discussion