API Reference
Command
New-ImageAvatar
Creates a rounded avatar image.
Remarks
Creates a rounded avatar image.
Examples
Generate an avatar and open it
New-ImageAvatar -FilePath user.jpg -OutputPath avatar.png -Open
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
New-ImageAvatar [-CornerRadius <Single>] -FilePath <String> [-Height <Int32>] [-Open] -OutputPath <String> [-Width <Int32>] [<CommonParameters>]#Parameter set:
PathParameters
- CornerRadius Single
- Corner radius for rounding.
- FilePath String
- Path to the input image.
- Height Int32
- Height of the avatar.
- Open SwitchParameter
- Open the avatar after saving.
- OutputPath String
- Destination path when saving to disk.
- Width Int32
- Width of the avatar.
New-ImageAvatar [-CornerRadius <Single>] -FilePath <String> [-Height <Int32>] [-Open] -OutputStream <Stream> [-Width <Int32>] [<CommonParameters>]#Parameter set:
StreamParameters
- CornerRadius Single
- Corner radius for rounding.
- FilePath String
- Path to the input image.
- Height Int32
- Height of the avatar.
- Open SwitchParameter
- Open the avatar after saving.
- OutputStream Stream
- Stream that receives the avatar image.
- Width Int32
- Width of the avatar.