# Export-ImageVisualArtifact

Exports a ChartForgeX visual artifact to static SVG, HTML, PNG, JPEG, WebP, GIF, BMP, TIFF, or TGA output.

 Command  

**Module**

`imageplayground`

**Inputs**

 `ChartForgeX.VisualArtifacts.VisualArtifact` 

**Outputs**

 `ChartForgeX.VisualArtifacts.VisualArtifact` 

Exports a ChartForgeX visual artifact to static SVG, HTML, PNG, JPEG, WebP, GIF, BMP, TIFF, or TGA output.

## Syntax

```
Export-ImageVisualArtifact
[-Artifact] <VisualArtifact>
[-Dpi <Double>]
[-FilePath] <String>
[-IncludeTopologyDiagnostics]
[-PassThru]
[-Show]
[-TopologyLayoutPreset <Automatic|Dense|Compact|Balanced|Presentation>]
[-Watermark <VisualWatermark[]>]
[<CommonParameters>]
```

 [#](#method-export-imagevisualartifact-visualartifact-double-string-switchparameter-switchparameter-switchparameter-topologylayoutpreset-visualwatermark) 

Parameter set: `All Parameter Sets`

## Description

Applies shared watermarks, PNG DPI metadata, topology layout presets, and optional layout diagnostics without changing the source artifact.

## Examples

### Export a watermarked 144 DPI PNG

```powershell
$artifact | Export-ImageVisualArtifact -FilePath report.png -Watermark $mark -Dpi 144
```

Exports the artifact through the shared ChartForgeX static rendering pipeline.

## Parameters

**-Artifact VisualArtifact requiredposition: 0pipeline: True (ByValue)**

Visual artifact to export.

**-Dpi Double optional**

PNG physical resolution metadata in dots per inch.

**-FilePath String requiredposition: 1**

Destination path. The extension picks the format: .svg, .html, .htm, .png, .jpg, .jpeg, .webp, .gif, .bmp, .tif, .tiff, or .tga.

**-IncludeTopologyDiagnostics SwitchParameter optional**

Draw a developer-oriented topology layout diagnostic overlay.

**-PassThru SwitchParameter optional**

Write the source artifact to the pipeline after export.

**-Show SwitchParameter optional**

Open the generated artifact after creation.

**-TopologyLayoutPreset TopologyLayoutPreset optional**

Reusable topology spacing and presentation profile.

Possible values: `Automatic`, `Dense`, `Compact`, `Balanced`, `Presentation`

**-Watermark VisualWatermark[] optional**

Watermarks applied in declaration order.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:64D4BCDF433B296E3C4DF8072F4DE27086ACA845100B608E68B1B4942BC1B772 -->
