# Set-OfficeWordImage

Updates OfficeIMO Word image sizing, wrapping, crop, and metadata.

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 **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

Aliases: WordImageStyle

**Module**

`PSWriteOffice`

**Aliases**

`WordImageStyle`

**Inputs**

`OfficeIMO.Word.WordImage`

**Outputs**

`OfficeIMO.Word.WordImage`

**Source**

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

Updates OfficeIMO Word image sizing, wrapping, crop, and metadata.

## Syntax

```
Set-OfficeWordImage
[-CropBottom <Int32>]
[-CropLeft <Int32>]
[-CropRight <Int32>]
[-CropTop <Int32>]
[-Description <String>]
[-Height <Double>]
[-Hidden <Boolean>]
[-HorizontalFlip <Boolean>]
[-Image] <WordImage>
[-Opacity <Int32>]
[-PassThru]
[-Rotation <Int32>]
[-Title <String>]
[-VerticalFlip <Boolean>]
[-Width <Double>]
[-Wrap <WordImageTextWrapping>]
[<CommonParameters>]
```

[#](#method-set-officewordimage-int32-int32-int32-int32-string-double-boolean-boolean-wordimage-int32-switchparameter-int32-string-boolean-double-wordimagetextwrapping)

Parameter set: `All Parameter Sets`

## Examples

### Resize and describe all report images.

```powershell
$doc = Get-OfficeWord -Path .\Report.docx
$doc |
    Get-OfficeWordImage |
    Set-OfficeWordImage -Width 320 -Wrap Square -Title 'Report image' -Description 'Image used in the report'
$doc | Save-OfficeWord -Path .\Report-Images.docx
```

Gets OfficeIMO image objects from an open document, applies thin image metadata and layout updates, and saves the document.

## Parameters

**-CropBottom Int32 optional**

Bottom crop value.

**-CropLeft Int32 optional**

Left crop value.

**-CropRight Int32 optional**

Right crop value.

**-CropTop Int32 optional**

Top crop value.

**-Description String optional**

Image alternate text metadata.

**-Height Double optional**

Image height in points.

**-Hidden Boolean optional**

Whether the image is hidden.

**-HorizontalFlip Boolean optional**

Horizontally flip the image.

**-Image WordImage requiredposition: 0pipeline: True (ByValue)**

Image to update.

**-Opacity Int32 optional**

Fixed opacity percentage.

**-PassThru SwitchParameter optional**

Emit the updated image.

**-Rotation Int32 optional**

Image rotation in degrees.

**-Title String optional**

Image title metadata.

**-VerticalFlip Boolean optional**

Vertically flip the image.

**-Width Double optional**

Image width in points.

**-Wrap WordImageTextWrapping optional**

Text wrapping mode.

Possible values: `InLineWithText`, `Square`, `Tight`, `Through`, `TopAndBottom`, `BehindText`, `InFrontOfText`

## 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:20377A98B79E0FE75A01E2C2D52D7755BC2B2DEE4FE2600D598589D58D4EA0CD -->
