Project

ImagePlayground

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

Stars 101
Forks 7
Total downloads 711,982
Release ImagePlayground-PowerShellModule.v3.2.7
Language: C# Updated: 2026-10-26
Command

New-ImageAvatar

Module
ImagePlayground
Inputs
System.String

Creates a rounded avatar image.

Syntax

New-ImageAvatar
[-CornerRadius <Single>]
[-FilePath] <String>
[-Height <Int32>]
[-Open]
[-OutputPath] <String>
[-Width <Int32>]
[<CommonParameters>]
#
Parameter set: Path
New-ImageAvatar
[-CornerRadius <Single>]
[-FilePath] <String>
[-Height <Int32>]
[-Open]
[-OutputStream] <Stream>
[-Width <Int32>]
[<CommonParameters>]
#
Parameter set: Stream

Examples

Generate an avatar and open it

New-ImageAvatar -FilePath user.jpg -OutputPath avatar.png -Open

Parameters

-CornerRadius Single optional
Corner radius for rounding.
-FilePath String requiredposition: 0pipeline: True (ByValue)
Path to the input image.
-Height Int32 optional
Height of the avatar.
-Open SwitchParameter optional
Open the avatar after saving.
-OutputPath String requiredposition: 1sets: Path
Destination path when saving to disk.
-Width Int32 optional
Width of the avatar.
-OutputStream Stream requiredposition: 1sets: 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.