Bug 447638

Summary: After applying reverse geo coding those tags are not being saved into the file automatically
Product: [Applications] digikam Reporter: ganchito55
Component: Geolocation-ReverseGeoCodingAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: minor CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 7.4.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 7.6.0
Sentry Crash Report:
Attachments: Write metadata configuration
A new example

Description ganchito55 2021-12-29 11:28:05 UTC
Created attachment 144928 [details]
Write metadata configuration

SUMMARY
I have been using DigiKam a bit the last days and I found that after applying reverse geotag, to get the photos with their country, city, etc. I saw those tags in DigiKam but they are not being saved into each file. I configured the metadata write behaviour to write everything except faces

STEPS TO REPRODUCE
1. Get a photo with gps info and without tags 
2. Apply one tag, e.g., nature
3. Run reverse geotag and get the country, city, etc tags, e.g., spain, seville
4. Check the jpg file using another program (windows explorer in my case) or export that jpg without removing its metadata

OBSERVED RESULT
Only the first tag (nature) is in the file

EXPECTED RESULT
All the tags should be in the file, nature; spain; seville

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
I got those tags applied after I manually use the option "Write metadatas into the selected files"
Comment 1 Maik Qualmann 2021-12-29 11:44:29 UTC
I don't think digiKam is making a mistake here. The question is which metadata tags Windows Explorer reads. Microsoft only reads its own tags. Check digiKam's ExitTool View or Metadata View to see whether the tags are included. Otherwise, upload an image so we can review. If not publicly on my private mail. Note that digiKam Gelocation writes information as normal tags. We already have bug reports to write geolocation information as Geo-IPTC / XMP tags.

Maik
Comment 2 ganchito55 2022-01-18 14:20:58 UTC
Created attachment 145615 [details]
A new example
Comment 3 ganchito55 2022-01-18 14:24:30 UTC
Sorry for the taking to long to reply, I tried it again, I'm seeing the tags in preview window but they aren't in the file, I think that with my current configuration those tags should be autosaved
Comment 4 Maik Qualmann 2022-01-18 14:58:26 UTC
I'm not sure if I understand your problem correctly. Your last screenshot is strange, I see Madrid and Spain in the thumbnail. However, this is not available in the right sidebar. Both listings of tags come from the database and should be the same. Can you send the image to my private mail to see what tags were actually saved in the image?

Maik
Comment 5 Maik Qualmann 2022-01-18 17:44:51 UTC
Thanks for the sample image. It only contains the tag "NATURALEZA". In the Gelocation Editor and Reverse Geolocation there is a button "More options". Actually it only contains the one option to write the tags to XMP. Did you activate this checkbox? 

Maik
Comment 6 ganchito55 2022-01-19 07:59:25 UTC
Hi Maik, thanks for your help, I think you found the error. I had that option disabled and that was the problem

Sorry for the noise :S