pcb_export_render_png
Export PCB renders (board, stackup, net, annotated) from SVG to PNG, with configurable width, net/component highlighting, and annotation support.
Instructions
Export an SVG render (board, stackup, net, annotated) to a PNG image file. Requires cairosvg.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net_name | No | Net name (required when render_type='net') | |
| width_px | No | Output image width in pixels (default 1600) | |
| session_id | Yes | Session ID from pcb_parse_layout | |
| annotations | No | Annotation list (for annotated render) | |
| output_path | No | Output PNG file path. If omitted, writes to temp file. | |
| render_type | Yes | Type of render to export | |
| highlight_nets | No | Nets to highlight (for board render) | |
| highlight_components | No | Components to highlight (for board render) |