API Reference
Command
Get-Image
Loads an image from disk.
Remarks
Returns a SixLabors.ImageSharp.Image object for further processing.
Examples
Read an image
$img = Get-Image -FilePath sample.png
Check dimensions
(Get-Image -FilePath sample.png).Width
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
Get-Image -FilePath <String> [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- FilePath String
- The file must exist.