Bug 395202

Summary: Cannot mass apply geolocation metadata in "Details" tab to multiple images
Product: [Applications] digikam Reporter: Milan Knížek <knizek>
Component: Plugin-Generic-GeolocationEditAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 5.9.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: GPS editing - before applying the new DOP value (all images selected).
GPS editing - after applying the new DOP value - only a single image is affected.

Description Milan Knížek 2018-06-10 06:31:08 UTC
Hi,

In Geolocation editor Details tab the user can manually edit the metadata like DOP.

Unfortunatelly, after hitting Apply, the data are applied only to a single image, not to all selected imaged in the editor.

Manual Copy&Paste coordinates from righ-click menu on image does not copy the other GPS metadata either.

Batch processor does not seem to offer mass GPS metadata modification, too.

As a result, setting DOP for hundreds of images is nearly impossible.
Comment 1 caulier.gilles 2018-06-10 07:59:16 UTC
Did you try "Item/Edit Geolocation" menu ?

Gilles Caulier
Comment 2 Milan Knížek 2018-06-10 08:42:21 UTC
Created attachment 113186 [details]
GPS editing - before applying the new DOP value (all images selected).
Comment 3 Milan Knížek 2018-06-10 08:43:08 UTC
Created attachment 113187 [details]
GPS editing - after applying the new DOP value - only a single image is affected.
Comment 4 Milan Knížek 2018-06-10 08:45:33 UTC
I checked in CLI, that only the single image has a new GPSDOP value, the others remained untouched by DigiKam // Geolocation editor.

Even more, when I open the Geolocation editor again, then no GPSDOP value is shown in the image list - as if there was no value.

$ exiv2 -pa 20170304_153820.jpg | grep -a "GPSDOP"
$ exiv2 -pa 20170304_154107.jpg | grep -a "GPSDOP"
Exif.GPSInfo.GPSDOP                          SRational   1  5/1
Xmp.exif.GPSDOP                              XmpText     3  5/1
Comment 5 Milan Knížek 2018-06-10 08:48:11 UTC
(In reply to caulier.gilles from comment #1)
> Did you try "Item/Edit Geolocation" menu ?

Yes, that's how I edit the geolocation.
Comment 6 caulier.gilles 2018-06-10 10:15:16 UTC
Ok, now please try with the current 6.0.0 pre-release digiKam AppImage bundle t see if this problem is not yet fixed. After all, we close more than 200 files since the 5.9.0 release.

AppImage can be used in parallel than 5.9.0. The bundle do not install files on your system.

See here to download the AppImage :

https://files.kde.org/digikam/

Gilles Caulier
Comment 7 Milan Knížek 2018-06-10 16:50:16 UTC
Thanks for the AppImage, way easier than compiling in VM.

However, the bug(s) are the same as described above.

P.S. The AppImage seems partially broken:

$ ./digikam-6.0.0-git-20180610T092015-x86-64.appimage
-- digiKam AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam application
digikam: symbol lookup error: /usr/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var

Preloading local version seems to work:
$ LD_PRELOAD=/usr/lib/libfreetype.so  ./digikam-6.0.0-git-20180610T092015-x86-64.appimage

Uncle Google says there is something wrong with fontconfig versions:
https://forum.manjaro.org/t/unable-to-start-appimage-usr-lib-libfontconfig-so-1-undefined-symbol-ft-done-mm-var/46611/5
Comment 8 Maik Qualmann 2018-06-10 19:56:43 UTC
I change it to a wish. What do you think would be the best solution? Eventually a "Copy to all empty fields function" in the right mouse button context menu above the image list?

Maik
Comment 9 Milan Knížek 2018-06-11 03:25:09 UTC
The best solution would be if the Details tab behaves like the Tags:

If multiple images with different GPS data are selected, the "tick" mark is semi-grey (selecting it would lead to override - either clear or set the same value; if untouched no change would be applied to images).

If it is easier to implement, your suggestion to simply paste values to empty fields only would work for my use case, too.
(Sometimes I do not have GPS data and do not care much about the exact location - I just need to place all images to some location on the map and set very low GPS precision (DOP) to indicate this is intentionally wrong.)

P.S I will report the bug re. ignored GPSDOP value separately.