API Reference
Command
Set-ImageRotation
Sets image rotation.
Remarks
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
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:
DegreesParameters
- Degrees Single
- Use for arbitrary rotations.
- FilePath String
- The image must exist.
- OutputPath String
- Supported formats depend on the file extension.
Set-ImageRotation -FilePath <String> -OutputPath <String> -RotateMode <Rotate90|Rotate180|Rotate270> [<CommonParameters>]#Parameter set:
ModeParameters
- FilePath String
- The image must exist.
- OutputPath String
- Supported formats depend on the file extension.
- RotateMode RotateMode
- Use when rotating 90, 180 or 270 degrees.
- Possible values:
Rotate90,Rotate180,Rotate270