# Get-ImageProvenance

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

Project

ImagePlayground

Automate image processing, codes, metadata, charts, topology, and visual stories from PowerShell.

[View on GitHub](https://github.com/EvotecIT/ImagePlayground) [Visit Website](#) [Releases](https://github.com/EvotecIT/ImagePlayground/releases) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/ImagePlayground)

Stars **102**

Forks **7**

Open issues 

Total downloads **708,853**

Release **ImagePlayground-PowerShellModule.v3.2.7**

Language: C# Updated: 2026-11-18

Command 

**Module**

`ImagePlayground`

**Inputs**

`System.String`

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

## Syntax

```
Get-ImageProvenance
[-FilePath] <String>
[<CommonParameters>]
```

[#](#method-get-imageprovenance-string)

Parameter set: `All Parameter Sets`

## Description

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

### Check whether an image declares AI provenance

```powershell
Get-ImageProvenance -FilePath image.png
```

### Remove all metadata when direct XMP metadata declares generative AI

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

## Parameters

**-FilePath String requiredposition: 0pipeline: True (ByValue)**

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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:FEBBB5833C212AAC6216685E6BC6AFA682BF3845F55E71BCEAA6F3C8FA67F2D3 -->
