Command
Set-ImageExif
Sets an EXIF tag value in an image.
Syntax
Set-ImageExif
[-ExifTag] <ExifTag>
[-FilePath] <String>
[[-FilePathOutput] <String>]
[-Value] <Object>
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
The value must match the type declared by the selected EXIF tag, including ImageSharp wrapper types such as Number or Rational.
Examples
Update DateTimeOriginal tag
Set-ImageExif -FilePath img.jpg -ExifTag ([SixLabors.ImageSharp.Metadata.Profiles.Exif.ExifTag]::DateTimeOriginal) -Value (Get-Date)Parameters
- -ExifTag ExifTag
- Tag to set.
- -FilePath String
- Image file to modify.
- -FilePathOutput String
- When not specified the source file is overwritten.
- -Value Object
- Value for the tag.
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.