Project

ImagePlayground

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

Stars 100
Forks 7
Total downloads 712,347
Release ImagePlayground-PowerShellModule.v3.2.7
Language: C# Updated: 2026-08-25

API Reference

Command

New-ImageAvatar

Namespace ImagePlayground
Inputs
System.String

Creates a rounded avatar image.

Remarks

Creates a rounded avatar image.

Examples

Authored help example

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: Path

Parameters

CornerRadius Single optionalposition: namedpipeline: False
Corner radius for rounding.
FilePath String requiredposition: 0pipeline: True (ByValue)
Path to the input image.
Height Int32 optionalposition: namedpipeline: False
Height of the avatar.
Open SwitchParameter optionalposition: namedpipeline: False
Open the avatar after saving.
OutputPath String requiredposition: 1pipeline: False
Destination path when saving to disk.
Width Int32 optionalposition: namedpipeline: False
Width of the avatar.
New-ImageAvatar [-CornerRadius <Single>] -FilePath <String> [-Height <Int32>] [-Open] -OutputStream <Stream> [-Width <Int32>] [<CommonParameters>]
#
Parameter set: Stream

Parameters

CornerRadius Single optionalposition: namedpipeline: False
Corner radius for rounding.
FilePath String requiredposition: 0pipeline: True (ByValue)
Path to the input image.
Height Int32 optionalposition: namedpipeline: False
Height of the avatar.
Open SwitchParameter optionalposition: namedpipeline: False
Open the avatar after saving.
OutputStream Stream requiredposition: 1pipeline: False
Stream that receives the avatar image.
Width Int32 optionalposition: namedpipeline: False
Width of the avatar.