# Set-ImageRotation

Sets image rotation. Review available syntax, parameters, pipeline guidance, and reference details in ImagePlayground API Reference.

Project

ImagePlayground

Automate image processing, codes, metadata, charts, topology, and visual stories from PowerShell.

[View on GitHub](https://github.com/EvotecIT/ImagePlayground) [Visit Website](#) [Releases](https://github.com/EvotecIT/ImagePlayground/releases) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/ImagePlayground)

Stars **102**

Forks **7**

Open issues 

Total downloads **708,853**

Release **ImagePlayground-PowerShellModule.v3.2.7**

Language: C# Updated: 2026-11-18

Command 

**Module**

`ImagePlayground`

**Inputs**

`System.String`

Sets image rotation.

## Syntax

```
Set-ImageRotation
[-Degrees] <Single>
[-FilePath] <String>
[-OutputPath] <String>
[<CommonParameters>]
```

[#](#method-set-imagerotation-single-string-string)

Parameter set: `Degrees`

```
Set-ImageRotation
[-FilePath] <String>
[-OutputPath] <String>
[-RotateMode] <Rotate90|Rotate180|Rotate270>
[<CommonParameters>]
```

[#](#method-set-imagerotation-string-string-rotatemode)

Parameter set: `Mode`

## Description

Use Degrees for arbitrary angles or RotateMode for predefined rotations.

## Examples

### Rotate by 90 degrees

```powershell
Set-ImageRotation -FilePath in.png -OutputPath out.png -Degrees 90
```

### Rotate using RotateMode

```powershell
Set-ImageRotation -FilePath in.png -OutputPath out.png -RotateMode Rotate180
```

## Parameters

**-Degrees Single requiredposition: 2sets: Degrees**

Use for arbitrary rotations.

**-FilePath String requiredposition: 0pipeline: True (ByValue)**

The image must exist.

**-OutputPath String requiredposition: 1**

Supported formats depend on the file extension.

**-RotateMode RotateMode requiredposition: 2sets: Mode**

Use when rotating 90, 180 or 270 degrees.

Possible values: `Rotate90`, `Rotate180`, `Rotate270`

## 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:91AE3BBEA4BC57CDD851E2C4D659C86D4034F138AFD34A05497F7B977578483A -->
