Project

ImagePlayground

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

Stars 100
Forks 7
Total downloads 712,347
Release ImagePlayground-PowerShellModule.v3.2.7
Language: C# Updated: 2026-08-25

API Reference

Command

Set-ImageRotation

Namespace ImagePlayground
Inputs
System.String

Sets image rotation.

Remarks

Use Degrees for arbitrary angles or RotateMode for predefined rotations.

Examples

Authored help example

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
        

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.

Syntax

Set-ImageRotation -Degrees <Single> -FilePath <String> -OutputPath <String> [<CommonParameters>]
#
Parameter set: Degrees

Parameters

Degrees Single requiredposition: 2pipeline: False
Use for arbitrary rotations.
FilePath String requiredposition: 0pipeline: True (ByValue)
The image must exist.
OutputPath String requiredposition: 1pipeline: False
Supported formats depend on the file extension.
Set-ImageRotation -FilePath <String> -OutputPath <String> -RotateMode <Rotate90|Rotate180|Rotate270> [<CommonParameters>]
#
Parameter set: Mode

Parameters

FilePath String requiredposition: 0pipeline: True (ByValue)
The image must exist.
OutputPath String requiredposition: 1pipeline: False
Supported formats depend on the file extension.
RotateMode RotateMode requiredposition: 2pipeline: Falsevalues: 3
Use when rotating 90, 180 or 270 degrees.
Possible values: Rotate90, Rotate180, Rotate270