# Add-OfficeMarkdownImage

Adds a Markdown image. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: MarkdownImage

**Module**

`PSWriteOffice`

**Aliases**

`MarkdownImage`

**Inputs**

`OfficeIMO.Markdown.MarkdownDoc`

**Outputs**

`OfficeIMO.Markdown.MarkdownDoc`

**Source**

[AddOfficeMarkdownImageCommand.cs:20](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Markdown/AddOfficeMarkdownImageCommand.cs#L20) 

Adds a Markdown image.

## Syntax

```
Add-OfficeMarkdownImage
[-Alt <String>]
[-Height <Double>]
[-PassThru]
[-Path] <String>
[-Title <String>]
[-Width <Double>]
[<CommonParameters>]
```

[#](#method-add-officemarkdownimage-string-double-switchparameter-string-string-double)

Parameter set: `Context`

```
Add-OfficeMarkdownImage
[-Alt <String>]
-Document <MarkdownDoc>
[-Height <Double>]
[-PassThru]
[-Path] <String>
[-Title <String>]
[-Width <Double>]
[<CommonParameters>]
```

[#](#method-add-officemarkdownimage-string-markdowndoc-double-switchparameter-string-string-double)

Parameter set: `Document`

## Examples

### Add a report image with alt text and sizing.

```powershell
New-OfficeMarkdown -Path .\Report.md {
    Add-OfficeMarkdownHeading -Level 2 -Text 'Architecture'
    Add-OfficeMarkdownImage -Path '.\Assets\architecture.png' -Alt 'Architecture diagram' -Title 'Current architecture' -Width 640
}
```

Appends an image block with accessibility text and optional presentation metadata.

## Parameters

**-Alt String optional**

Alt text for the image.

**-Height Double optional**

Optional height in pixels.

**-PassThru SwitchParameter optional**

Emit the Markdown document after appending the image.

**-Path String requiredposition: 0**

Image path or URL.

**-Title String optional**

Optional title for the image.

**-Width Double optional**

Optional width in pixels.

**-Document MarkdownDoc requiredpipeline: True (ByValue)sets: Document**

Markdown document to update outside the DSL context.

## 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).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:ADDD470F5F1B76D0B557DEDFD3389E63F6D3B2554FF4C5917FAE37F1C47F011D -->
