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

Get-ImageProvenance

Namespace ImagePlayground
Inputs
System.String

Gets embedded C2PA containers and direct XMP generative-AI declarations from an image.

Remarks

This command does not interpret the active C2PA manifest or cryptographically validate C2PA signatures, trust chains, or asset hashes. A C2PA container records provenance but does not by itself mean that the image was made with AI. Use a conforming C2PA validator to inspect its active claim.

Examples

Authored help example

Check whether an image declares AI provenance


Get-ImageProvenance -FilePath image.png
        

Remove all metadata when direct XMP metadata declares generative AI


$info = Get-ImageProvenance -FilePath image.png
            if ($info.HasXmpAiDeclaration) {
                Remove-ImageMetadata -FilePath image.png -OutputPath image-clean.png
            }
        

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-ImageProvenance -FilePath <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

FilePath String requiredposition: 0pipeline: True (ByValue)
Path to the image file.