ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: mceachen on March 26, 2020, 08:07:06 PM

Title: RAW+JPG pairs with sidecars
Post by: mceachen on March 26, 2020, 08:07:06 PM
Say I have 3 files in a directory: IMG.NEF, IMG.JPG, and IMG.XMP.

If the XMP asserts, for example, <tiff:Orientation>1</tiff:Orientation>, should that be applied to both the NEF and JPG?

Is there a naming convention to allow the sidecar to only be applied to one of the files, perhaps by calling the sidecar IMG.NEF.XMP so it only applies to the NEF?

Metadata & sidecar ninjas, what do you think?

Thanks!
Title: Re: RAW+JPG pairs with sidecars
Post by: StarGeek on March 26, 2020, 09:15:29 PM
I would think that would be up to the software that will be reading the sidecar file.  It's quite possible that you would different results with different software, because, AFAIK, there's no standard dictating what files the sidecar file should apply to.
Title: Re: RAW+JPG pairs with sidecars
Post by: obetz on March 27, 2020, 05:00:58 AM
Say I have 3 files in a directory: IMG.NEF, IMG.JPG, and IMG.XMP.

If the XMP asserts, for example, <tiff:Orientation>1</tiff:Orientation>, should that be applied to both the NEF and JPG?

Is there a naming convention to allow the sidecar to only be applied to one of the files, perhaps by calling the sidecar IMG.NEF.XMP so it only applies to the NEF?

I suggest to use unambiguous naming, IOW avoid residing IMG.NEF and IMG.JPG in the same folder together with IMG.XMP.

Either use a subfolder for the jpg files or some other naming scheme like IMG_x.jpg.

Oliver
Title: Re: RAW+JPG pairs with sidecars
Post by: mceachen on May 23, 2020, 08:44:17 PM
Thanks for the suggestions. It looks like there's some prior art that uses the $fullname.XMP (like IMG.NEF.XMP).

I'm going with the unambiguous name for writes (unless the shorter sidecar exists), and reading from both the ambiguous and unambiguous sidecars (where ties are won by the unambiguous sidecar).

Thanks again.