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

Set-ImageExif

Namespace ImagePlayground
Inputs
System.String

Sets an EXIF tag value in an image.

Remarks

The value must match the type declared by the selected EXIF tag, including ImageSharp wrapper types such as Number or Rational.

Examples

Authored help example

Update DateTimeOriginal tag

PS>


Set-ImageExif -FilePath img.jpg -ExifTag ([SixLabors.ImageSharp.Metadata.Profiles.Exif.ExifTag]::DateTimeOriginal) -Value (Get-Date)
        

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

Set-ImageExif -ExifTag <ExifTag> -FilePath <String> [-FilePathOutput <String>] -Value <Object> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

ExifTag ExifTag requiredposition: 2pipeline: False
Tag to set.
FilePath String requiredposition: 0pipeline: True (ByValue)
Image file to modify.
FilePathOutput String optionalposition: 1pipeline: False
When not specified the source file is overwritten.
Value Object requiredposition: 3pipeline: False
Value for the tag.