# Resize-Image

Resizes 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`

Resizes an image.

## Syntax

```
Resize-Image
[-DontRespectAspectRatio]
[-FilePath] <String>
[-Height <Int32>]
[-OutputPath] <String>
[-Width <Int32>]
[<CommonParameters>]
```

[#](#method-resize-image-switchparameter-string-int32-string-int32)

Parameter set: `HeightWidth`

```
Resize-Image
[-FilePath] <String>
[-OutputPath] <String>
[-Percentage <Int32>]
[<CommonParameters>]
```

[#](#method-resize-image-string-string-int32)

Parameter set: `Percentage`

## Description

Use width/height parameters or Percentage.

## Examples

### Resize to 100x100

```powershell
Resize-Image -FilePath in.png -OutputPath out.png -Width 100 -Height 100
```

### Double the size

```powershell
Resize-Image -FilePath in.png -OutputPath out.png -Percentage 200
```

## Parameters

**-DontRespectAspectRatio SwitchParameter optionalsets: HeightWidth**

Only valid when resizing by width or height.

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

The image must exist.

**-Height Int32 optionalsets: HeightWidth**

Used with Width when not using Percentage.

**-OutputPath String requiredposition: 1**

Supported formats depend on the file extension.

**-Width Int32 optionalsets: HeightWidth**

Used with Height when not using Percentage.

**-Percentage Int32 optionalsets: Percentage**

Applies uniform scaling relative to the original size.

## 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:51B1D798262FCFF3BC08A10BBB638EE842A5845ECC124E0648B15CDE130FFEEA -->
