pub async fn rasterize(
svg: &ExportFile,
format: ImageFormat,
options: &ImageOptions,
) -> Result<ExportFile, MindMapError>Expand description
Rasterize the captured SVG with the browser’s native image/canvas codec. Detects unsupported codecs instead of returning PNG bytes with a WebP suffix.