Command
Set-ImageRotation
Sets image rotation.
Syntax
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 90Rotate using RotateMode
Set-ImageRotation -FilePath in.png -OutputPath out.png -RotateMode Rotate180Parameters
- -Degrees Single
- Use for arbitrary rotations.
- -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
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.