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