Command
Get-ImageMetadata
Gets supported metadata profiles and provenance indicators from an image.
Syntax
Get-ImageMetadata
[-FilePath] <String>
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
The result includes resolution, EXIF, XMP, ICC, IPTC, and lightweight C2PA provenance detection where supported.
C2PA presence does not by itself mean that an image was made with AI, and this command does not cryptographically validate C2PA claims.
Examples
Inspect all supported image metadata
Get-ImageMetadata -FilePath image.pngCheck metadata for AI provenance indicators
$metadata = Get-ImageMetadata -FilePath image.png
$metadata.Provenance.HasC2paManifest
$metadata.Provenance.HasXmpAiDeclarationParameters
- -FilePath String
- Path to the image file.
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.