Project

ImagePlayground

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

Stars 101
Forks 7
Total downloads 711,982
Release ImagePlayground-PowerShellModule.v3.2.7
Language: C# Updated: 2026-10-26
Command

Set-ImageRotation

Module
ImagePlayground
Inputs
System.String

Sets image rotation.

Syntax

Set-ImageRotation
[-Degrees] <Single>
[-FilePath] <String>
[-OutputPath] <String>
[<CommonParameters>]
#
Parameter set: Degrees
Set-ImageRotation
[-FilePath] <String>
[-OutputPath] <String>
[-RotateMode] <Rotate90|Rotate180|Rotate270>
[<CommonParameters>]
#
Parameter set: Mode

Description

Use Degrees for arbitrary angles or RotateMode for predefined rotations.

Examples

Rotate by 90 degrees

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

Rotate using RotateMode

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.