# Remove-ImageMetadata

Removes selected metadata from an image. Review available syntax, parameters, pipeline guidance, and reference details in ImagePlayground API Reference.

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`

Removes selected metadata from an image.

## Syntax

```
Remove-ImageMetadata
[-All]
[-FilePath] <String>
[-MetadataType <ImageMetadataType[]>]
[-OutputPath] <String>
[-PassThru]
[<CommonParameters>]
```

[#](#method-remove-imagemetadata-switchparameter-string-imagemetadatatype-string-switchparameter)

Parameter set: `All Parameter Sets`

## Description

JPEG and PNG files are rewritten without re-encoding their compressed image data. Choose individual metadata families, or use All for the compatibility behavior that removes every supported family. HEIF and HEIC cleanup is limited to EXIF and XMP.

## Examples

### Save a copy without metadata

```powershell
Remove-ImageMetadata -FilePath in.jpg -OutputPath out.jpg -All
```

### Remove C2PA Content Credentials but preserve EXIF, XMP, IPTC, and ICC metadata

```powershell
Remove-ImageMetadata -FilePath in.jpg -OutputPath out.jpg -MetadataType C2pa
```

## Parameters

**-All SwitchParameter optional**

Remove every metadata family supported by the image format.

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

Source image file.

**-MetadataType ImageMetadataType[] optional**

Metadata families to remove. When omitted, all supported metadata is removed for backward compatibility.

Possible values: `Exif`, `Xmp`, `Iptc`, `Icc`, `C2pa`, `All`

**-OutputPath String requiredposition: 1**

Destination image path.

**-PassThru SwitchParameter optional**

Return a result describing which metadata was removed and whether re-encoding occurred.

## 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:D0A7952748DD94E91D63ABAE8CAEEA86AE3BB74235256FDDD148534AE8DA8B88 -->
