Command
New-ImageAvatar
Creates a rounded avatar image.
Syntax
New-ImageAvatar
[-CornerRadius <Single>]
[-FilePath] <String>
[-Height <Int32>]
[-Open]
[-OutputPath] <String>
[-Width <Int32>]
[<CommonParameters>]#Parameter set:
PathNew-ImageAvatar
[-CornerRadius <Single>]
[-FilePath] <String>
[-Height <Int32>]
[-Open]
[-OutputStream] <Stream>
[-Width <Int32>]
[<CommonParameters>]#Parameter set:
StreamExamples
Generate an avatar and open it
New-ImageAvatar -FilePath user.jpg -OutputPath avatar.png -OpenParameters
- -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.
- -OutputStream Stream
- Stream that receives the avatar image.
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.