Created attachment 165698 [details] Screen Hi, digiKam-8.3.0-20240209T084135-Win64.exe Windows 10 version 22H2 19045 3996 1- GPS data present in the EXIF of a RAW photo : Data imported by Digikam 2- GPS data present only in an XML file (Absent in the RAW file : These are ignored despite a configuration that seems correct. Best regard,
Created attachment 165699 [details] Setting
Created attachment 165700 [details] file 240209001.xmp linked to RAW 240209001.cr2
Your sidecar file follows the rules of many commercial programs, i.e. BASISNAME.xmp. You have to explicitly activate this with the option "Sidecar file names compatible with commercial programs". Then your sidecars will be read, by default we use BASISNAME.EXT.xmp. After activating the option, the metadata must be read from the images again. Maik
Another note, please also remove your additionally added sidecar extension ".xmp". The extension "xmp" is already present by default, if exotic extensions are added, even without a dot and these are only taken into account for file operations such as copying / moving / renaming. Maik
Thank you very much for these technical explanations. Couldn't we simplify this setting ? The “Sidecar file names are compatible with commercial programs” option seems reserved for advanced mode requiring technical knowledge (sidecar format BASENAME.xmp). Does it really need to exist to collect GPS coordinates, read-only from an xmp file in the presence of a RAW file (cr2, cr3 or other… in the same directory with the same base name ? When importing into the Digikam database, compare EXIF of the photo with XMP content of the same base name in the same directory - format / SerialNumber / DateTimeOriginal - should allow collection of GPS data Here is the content present in EXIF and XMP : tiff:Model="Canon PowerShot G9 X Mark II" dc:format="image/x-canon-cr2" aux:SerialNumber="613052000433" exif:DateTimeOriginal="2024-02-09T14:56:32.39"
No, unfortunately there is no other way to solve it. This option also determines the writing of the sidecars and thus the file name. They probably only use it for GPS, other users write all their metadata to the sidecars. Up until about digiKam-8.0.0 we had a semi-automatic mode to make it easier for Windows users to get started, we always looked for BASENAME.xmp first, regardless of the setting. However, that led to chaos. Because BASENAME.EXT.xmp was then written, which then led to 2 sidecars. We really prefer BASENAME.EXT.xmp, otherwise the sidecar would refer not only to the CR2 file, but also to a JPG or TIF file if the base name is the same. Another thing is, if we look at all possible sidecars, this has a strong impact on performance, especially under network drives. It is therefore unthinkable that we still compare the sidecar metadata with the image metadata. We will make this point even clearer in the digiKam documentation. https://docs.digikam.org/en/setup_application/metadata_settings.html#id12 Maik
Thank you very much for your technical explanations and the time spent ! In the message box below which opens when you check: “Sidecar file names are compatible with commercial programs” "You should only activate this option if you are exchanging image metadata with programs that use the sidecar format BASENAME.xmp. If you have images with the same base name (e.g. Image.CR2 and Image.JPG) then the sidecar can no longer be uniquely assigned and will be used for both images, which can lead to metadata problems." Perhaps specify to check this option to have GPS data in EXIF from a RAW which does not contain any internally, from an XMP file of the same base name... +=+=+=+ I really like DIgikam for the fact that the entire catalog is based on databases, the main one of which contains the thumbnails internally. Big positive point compared to your competitors! In fact, saving a single file is faster and less disk space intensive. The same goes for avoiding archiving RAW files and XMPs only for GPS coordinates. I prefer a backup of a RAW (or even JPG) encapsulating in EXIF the GPS coordinates when they exist. (Canon 5D MK-IV allows this option when shooting) Currently, to enrich a RAW whose GPS data is absent, but present in an XMP file, I use the "Item" > "Write metadata to File" option after selecting the photos concerned. I have never encountered any particular problem, but is there an option exclusively authorizing the writing of GPS data when importing into your database or in Refresh? Thank you in advance and congratulations to you and your team for the quality of this program.