Project

ImagePlayground

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

Stars 101
Forks 7
Total downloads 711,982
Release ImagePlayground-PowerShellModule.v3.2.7
Language: C# Updated: 2026-10-26
Command

Set-ImageHeifXmp

Module
ImagePlayground
Inputs
System.String

Sets the XMP metadata packet in a HEIF or HEIC file.

Syntax

Set-ImageHeifXmp
[-FilePath] <String>
[[-FilePathOutput] <String>]
[-Xmp] <String>
[<CommonParameters>]
#
Parameter set: Xmp
Set-ImageHeifXmp
[-FilePath] <String>
[[-FilePathOutput] <String>]
[-XmpPath] <String>
[<CommonParameters>]
#
Parameter set: XmpPath

Description

Requires an existing HEIF XMP item with a single writable file extent.

Examples

Set a HEIC XMP packet from a string

Set-ImageHeifXmp -FilePath photo.heic -Xmp $packet

Set a HEIC XMP packet from a file

Set-ImageHeifXmp -FilePath photo.heic -XmpPath packet.xmp -FilePathOutput photo-updated.heic

Parameters

-FilePath String requiredposition: 0pipeline: True (ByValue)
Path to the HEIF or HEIC file.
-FilePathOutput String optionalposition: 1
When not specified the source file is overwritten.
-Xmp String requiredposition: 2sets: Xmp
XMP metadata packet to write.
-XmpPath String requiredposition: 2sets: XmpPath
Path to a UTF-8 XMP metadata packet 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.