Bug 478790 - locations metadata not written to IPTC or XMP after reverse geocoding
Summary: locations metadata not written to IPTC or XMP after reverse geocoding
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Geolocation-ReverseGeoCoding (show other bugs)
Version: 8.2.0
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-20 20:48 UTC by simonanna
Modified: 2023-12-22 14:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0
Sentry Crash Report:


Attachments
no location metadata in iptc/xmp (1.63 MB, image/png)
2023-12-20 22:03 UTC, simonanna
Details
location metadata in iptc/xmp ok with digikam 8.1 (1.68 MB, image/png)
2023-12-20 22:05 UTC, simonanna
Details
missing location metadata/reverse geocoding terminal output (83.37 KB, text/plain)
2023-12-20 22:35 UTC, simonanna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description simonanna 2023-12-20 20:48:29 UTC
SUMMARY
***
locations metadata not written to IPTC or XMP after reverse geocoding
***


STEPS TO REPRODUCE
I performed reverse geocoding and activated "write locations as tags" and "write locations metadata". Yet Country Code, Country Name, City, sub Location etc. are missing from the IPTC and XMP metadata, only the keywords are written into the metadata of the photo. This used to work in Digikam 8.1 but is broken in 8.2.

OBSERVED RESULT
Country Code, Country Name, City, sub Location etc. are MISSING from the IPTC and XMP metadata, only the keywords are written into the metadata of the photo

EXPECTED RESULT

Country Code, Country Name, City, sub Location etc. are written into the IPTC and XMP metadata

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Debian stable (Bookworm)
(available in About System)
KDE Plasma Version: 5.x
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

This feature was functional in 8.1
Comment 1 Maik Qualmann 2023-12-20 21:00:00 UTC
Just tested again, no problems, location metadata is written in IPTC and XMP.

Please provide a debug log from the terminal as described here of the process.

https://www.digikam.org/contribute/

Maik
Comment 2 simonanna 2023-12-20 21:46:04 UTC
no this definitely does not work, I just tested this on Windows too and it's the exact same behavior.
The keywords are there, but country code, city name etc are missing!!!
I am going to try that debug log, but it should not be necessary, I don't think it will be useful
I am going to test on Arch too, but I am sure it will be the same.
Comment 3 Maik Qualmann 2023-12-20 21:53:18 UTC
We have changed the default setting in the reverse geolocation tool, open the options and see whether location metadata is actually activated.

Maik
Comment 4 simonanna 2023-12-20 21:59:14 UTC
(In reply to Maik Qualmann from comment #3)
> We have changed the default setting in the reverse geolocation tool, open
> the options and see whether location metadata is actually activated.
> 
> Maik

yes of course write locations metadata is activated, in the right bottom corner, under more options, do you mean that? This is the same in 8.1
Comment 5 simonanna 2023-12-20 22:03:35 UTC
Created attachment 164330 [details]
no location metadata in iptc/xmp
Comment 6 simonanna 2023-12-20 22:05:38 UTC
Created attachment 164331 [details]
location metadata in iptc/xmp ok with digikam 8.1
Comment 7 Maik Qualmann 2023-12-20 22:08:10 UTC
Yes, I mean that option. I did further tests here, no problems, all location metadata is written. What image type are you using? If sidecar, what settings?

Maik
Comment 8 Maik Qualmann 2023-12-20 22:12:45 UTC
Is the option to write metadata templates activated in the metadata settings?

Maik
Comment 9 simonanna 2023-12-20 22:14:10 UTC
(In reply to Maik Qualmann from comment #7)
> Yes, I mean that option. I did further tests here, no problems, all location
> metadata is written. What image type are you using? If sidecar, what
> settings?
> 
> Maik

I am using JPEG and PNG. Btw, just tested 8.3, same behavior. I also added two screenshots, but it takes long to download the debug-appimage here.
Comment 10 simonanna 2023-12-20 22:14:37 UTC
(In reply to Maik Qualmann from comment #8)
> Is the option to write metadata templates activated in the metadata settings?
> 
> Maik

yes, it is activated
Comment 11 Maik Qualmann 2023-12-20 22:16:21 UTC
The Debug AppImage is not needed, simply activate internal debugging in the digiKam settings under Miscellaneous->System and restart. Post debug messages from the terminal.

Maik
Comment 12 simonanna 2023-12-20 22:35:40 UTC
Created attachment 164333 [details]
missing location metadata/reverse geocoding terminal output
Comment 13 simonanna 2023-12-20 22:41:20 UTC
(In reply to Maik Qualmann from comment #8)
> Is the option to write metadata templates activated in the metadata settings?
> 
> Maik

well turns out it wasn't activated afterall, thanks for the help