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

Resize-Image

Namespace ImagePlayground
Inputs
System.String

Resizes an image.

Remarks

Use width/height parameters or Percentage.

Examples

Authored help example

Resize to 100x100


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

Double the size


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

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

Resize-Image [-DontRespectAspectRatio] -FilePath <String> [-Height <Int32>] -OutputPath <String> [-Width <Int32>] [<CommonParameters>]
#
Parameter set: HeightWidth

Parameters

DontRespectAspectRatio SwitchParameter optionalposition: namedpipeline: False
Only valid when resizing by width or height.
FilePath String requiredposition: 0pipeline: True (ByValue)
The image must exist.
Height Int32 optionalposition: namedpipeline: False
Used with Width when not using Percentage.
OutputPath String requiredposition: 1pipeline: False
Supported formats depend on the file extension.
Width Int32 optionalposition: namedpipeline: False
Used with Height when not using Percentage.
Resize-Image -FilePath <String> -OutputPath <String> [-Percentage <Int32>] [<CommonParameters>]
#
Parameter set: Percentage

Parameters

FilePath String requiredposition: 0pipeline: True (ByValue)
The image must exist.
OutputPath String requiredposition: 1pipeline: False
Supported formats depend on the file extension.
Percentage Int32 optionalposition: namedpipeline: False
Applies uniform scaling relative to the original size.