Import XMP sidecar data into JPG file

This is a quick tip based on my experience handling image files with XMP sidecar files.

XMP sidecar files typically contain useful data such as GPS information and file keywords. Some asset management software may not handle the sidecar file as easily as an image file, so you can import the XMP data directly into the image file using exiftool.


exiftool -tagsfromfile IMG_1234.XMP -all:all IMG_1234.JPG

If you want to loop through a directory of files, try this:

for x in *.JPG; do exiftool -tagsfromfile ${x%.*}.XMP -all:all $x; done