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-ImageIcon

Namespace ImagePlayground
Inputs
System.String

Creates an icon file from an image.

Remarks

Generates multiple icon sizes using Size.

Examples

Authored help example

Create 16x16 and 32x32 icons


New-ImageIcon -FilePath in.png -OutputPath icon.ico -Size 16,32
        

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-ImageIcon -FilePath <String> [-Open] -OutputPath <String> [-Size <Int32[]>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

FilePath String requiredposition: 0pipeline: True (ByValue)
The file must exist.
Open SwitchParameter optionalposition: namedpipeline: False
Open the icon after saving.
OutputPath String requiredposition: 1pipeline: False
Destination icon file.
Size Int32[] optionalposition: namedpipeline: False
Defaults to common icon sizes when empty.