Bug 406255 - Geolocalisation is lost when photos from Google photos is imported in Digikam
Summary: Geolocalisation is lost when photos from Google photos is imported in Digikam
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Geolocation-Workflow (other bugs)
Version First Reported In: 7.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-05 14:28 UTC by authierry
Modified: 2022-01-10 05:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 7.5.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description authierry 2019-04-05 14:28:28 UTC
SUMMARY
When Digikam import Photos from Google Photos, the GPS (localisation of the picture) isn't keep in digikam.

STEPS TO REPRODUCE
1. Upload a picture with GPS localisation to Google Photos album
2. Import the same Photo to another album of Digikam.
3. The GPS localisation included in the photo is lost

OBSERVED RESULT
GPS information included in the picture is lost

EXPECTED RESULT
Keep the important information of GPS localisation with a Photos to use it correctly in digikam 

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

ADDITIONAL INFORMATION
Thanks for your answer.
Comment 1 authierry 2019-04-05 14:39:34 UTC
For this picture, the GPS localisation is still present on the photo in the Google Photos site.
Comment 2 caulier.gilles 2019-04-05 14:42:50 UTC
And how are you sure that photo EXPORTED by google web service are not stripped about metadata.

Please share your file taken from Google, it's easy to check if geo-location still present in EXIF or XMP metadata.

Gilles Caulier
Comment 3 Maik Qualmann 2019-04-05 17:23:34 UTC
Git commit 0e208d95b92484dad4aafae70ff3597801b2b7a4 by Maik Qualmann.
Committed on 05/04/2019 at 17:22.
Pushed by mqualmann into branch 'master'.

download photos with metadata except geolocation

M  +1    -2    core/dplugins/generic/webservices/google/gphoto/gptalker.cpp

https://commits.kde.org/digikam/0e208d95b92484dad4aafae70ff3597801b2b7a4
Comment 4 Maik Qualmann 2019-04-05 17:26:47 UTC
This patch is a small improvement. But as you can read here the location metadata are excluded from it. Look for the "d" parameter:


https://developers.google.com/photos/library/guides/access-media-items#base-urls

We can not do anything...

Maik
Comment 5 caulier.gilles 2020-08-01 15:42:59 UTC
digiKam 7.0.0 stable release is now published and now available as FlatPak:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Thanks in advance

Gilles Caulier
Comment 6 Romain Racamier 2021-10-17 14:13:01 UTC
I'm using DigiKam 7.3.0 on Linux and I have the same issue
Comment 7 Maik Qualmann 2021-10-17 17:12:40 UTC
We cannot change the behavior, nor can we fix the problem in the next digiKam versions. Google points out in its API documentation that removing the geolocation information during the download is intentional.
Remember that Google Photo is not a backup service for your images, the images will be re-encoded by Google and metadata will be removed. Google Photos should only use to "shows" images in the web.

Maik
Comment 8 Romain Racamier 2021-10-17 23:59:52 UTC
Thanks for the heads up Maik, I was not aware of this, I will look into another backup option. 

Maybe we should close this issue, it's very unlikely that Google will change this behavior in the future.