# New-ImageIcon

Creates an icon file from an image. Review available syntax, parameters, pipeline guidance, and reference details in ImagePlayground API Reference.

Project

ImagePlayground

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

[View on GitHub](https://github.com/EvotecIT/ImagePlayground) [Visit Website](#) [Releases](https://github.com/EvotecIT/ImagePlayground/releases) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/ImagePlayground)

Stars **102**

Forks **7**

Open issues 

Total downloads **708,853**

Release **ImagePlayground-PowerShellModule.v3.2.7**

Language: C# Updated: 2026-11-18

Command 

**Module**

`ImagePlayground`

**Inputs**

`System.String`

Creates an icon file from an image.

## Syntax

```
New-ImageIcon
[-FilePath] <String>
[-Open]
[-OutputPath] <String>
[-Size <Int32[]>]
[<CommonParameters>]
```

[#](#method-new-imageicon-string-switchparameter-string-int32)

Parameter set: `All Parameter Sets`

## Description

Generates multiple icon sizes using Size.

## Examples

### Create 16x16 and 32x32 icons

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

## Parameters

**-FilePath String requiredposition: 0pipeline: True (ByValue)**

The file must exist.

**-Open SwitchParameter optional**

Open the icon after saving.

**-OutputPath String requiredposition: 1**

Destination icon file.

**-Size Int32[] optional**

Defaults to common icon sizes when empty.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:137EB782DD0F14C76F70B4AC6E76C90BCFA694C5789FA22B9D938885B621EC80 -->
