Command
Resize-Image
Resizes an image.
Syntax
Description
Use width/height parameters or Percentage.
Examples
Resize to 100x100
Resize-Image -FilePath in.png -OutputPath out.png -Width 100 -Height 100Double the size
Resize-Image -FilePath in.png -OutputPath out.png -Percentage 200Parameters
- -DontRespectAspectRatio SwitchParameter
- Only valid when resizing by width or height.
- -FilePath String
- The image must exist.
- -Height Int32
- Used with Width when not using Percentage.
- -OutputPath String
- Supported formats depend on the file extension.
- -Width Int32
- Used with Height when not using Percentage.
- -Percentage Int32
- 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.