Search code examples
metadataexiftool

How to add metadata using Exiftool?


I have an image, where I want to create a new tag called "DepthMap" and add an image to that tag. I have searched a lot but could not find an example to do it.


Solution

  • Assuming you want to embed a depth map image into the XMP-GDepth:DepthImage tag, the basic command would be:
    exiftool "-xmp-gdepth:DepthImage<=depthmap.jpg" File.jpg

    But note that there might be other data required. See this exiftool forum post for more info. A couple changes from that post is that the config file is no longer necessary and xmp-gdepth:data is now XMP-GDepth:DepthImage as shown in the above command.