Bug 408525 - flickr export - location lost and/or replaced
Summary: flickr export - location lost and/or replaced
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Flickr (show other bugs)
Version: 6.1.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-10 13:36 UTC by jon33040
Modified: 2019-06-10 18:00 UTC (History)
2 users (show)

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


Attachments
results of running exiftool on an image (13.92 KB, text/plain)
2019-06-10 16:54 UTC, jon33040
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jon33040 2019-06-10 13:36:06 UTC
SUMMARY
When exporting to flickr, the location is partly lost (i.e. flickr shows a "Add ths photo to your map" link) and/or replaced. If I show the exif, this includes the following;

Country- Primary Location Code - ABW
Country- Primary Location Name - Aruba 

A tag is generated for "Aruba".

STEPS TO REPRODUCE
1. Add geoloc data and tags to a picture in DK
1. Export the picture to flickr 
2. Look at the flickr page
3. Show the exif

OBSERVED RESULT
flickr shows a "Add ths photo to your map" link and
the exif includes two lines as follows;
Country- Primary Location Code - ABW
Country- Primary Location Name - Aruba 
An extra tag appears "Aruba" and sometimes, some tags added by DK are lost.

EXPECTED RESULT
The location added to the picture in DK appears in flickr.
The location is correctly visible in the exif.
All the tags added in DK are present and either 1) no  others are present or 2) any extra ones correctly reflect the geoloc added to the picture in DK.

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

ADDITIONAL INFORMATION
digikam version 6.1.0
CPU cores: 4
Eigen: 3.2.5
Exiv2: 0.27.0
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: Yes
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
ImageMagick codecs: 7.0.8
KF5: 5.56.0
LensFun: 0.3.95-0
LibCImg: 130
LibJPEG: 80
LibJasper: 2.0.14
LibLCMS: 2080
LibLqr support: Yes
LibPGF: 7.19.03
LibPNG: 1.6.36
LibRaw: 0.19.2
LibTIFF: 4.0.9
Marble: 0.27.20
Parallelized demosaicing: No
Qt: 5.11.3
Qt Webkit support: Yes
VKontakte support: No
AkonadiContact support: No
Baloo support: No
Calendar support: Yes
DBus support: Yes
Database backend: QSQLITE
HTML Gallery support: Yes
LibAVCodec: 57.89.100
LibAVFormat: 57.71.100
LibAVUtil: 55.58.100
LibGphoto2: 2.5.22
LibOpenCV: 3.4.5
LibQtAV: 1.12.1
Media player support: Yes
Panorama support: Yes
Comment 1 caulier.gilles 2019-06-10 13:45:27 UTC
Can you reproduce the dysfunction using last 6.2.0 pre-release AppImage bundle ?

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

Gilles Caulier
Comment 2 Maik Qualmann 2019-06-10 14:44:30 UTC
If you upload an image via the web interface of Flickr no geolocation information is displayed. It looks as if Flickr does not (more?) scan the images. If you enable the "Use Host Application Tags" option on the Flickr tool, everything will work as expected.

Maik
Comment 3 jon33040 2019-06-10 15:40:41 UTC
According to flickr, the exif still includes references to Aruba.

Country- Primary Location Code - ABW
Country- Primary Location Name - Aruba 
Country - Aruba 

And flickr still adds a tag for Aruba on top of the ones I put there.
Comment 4 Maik Qualmann 2019-06-10 16:05:55 UTC
Can you provide a test image? I can not reproduce it here, the Flickr tool does not add or change these IPTC country codes. This information will already be in your image.

Maik
Comment 5 Maik Qualmann 2019-06-10 16:15:19 UTC
You upload the images via the option "Upload Original Image". If the image size is changed, we remove the IPTC tags because Flickr scans them. In this case, you yourself have to remove the IPTC tags from the images. The "Upload Original Image" option means no change to the image.

Maik
Comment 6 Maik Qualmann 2019-06-10 16:32:14 UTC
The wish to remove certain tags from the images already exists: Bug 351366

You have the possibility:
1. Remove the IPTC metadata with the BQM
2. Correct the IPTC metadata with the Metadata Editor
3. Do not use the "Upload Original Image" option and upload a JPG image to Flickr where the IPTC data will be automatically removed

Maik
Comment 7 jon33040 2019-06-10 16:54:08 UTC
Created attachment 120761 [details]
results of running exiftool on an image
Comment 8 jon33040 2019-06-10 16:56:26 UTC
It seems there is a problem earlier in the workflow - something sets the location to Aruba before it's uploaded to flickr. Flickr then generates a bogus tag based on this location. To be clear, the bogus tag is not explicitly in the IPTV metadata, it's generated by flickr from the (wrong) location.

I will investigate further. Do you prefer I open a new bug if it turns out that DK is doing something strange?
Comment 9 Maik Qualmann 2019-06-10 16:57:26 UTC
Also exiftool finds the tags:

Country-Primary Location Name   : Aruba
Country-Primary Location Code   : ABW

Maik
Comment 10 jon33040 2019-06-10 17:02:50 UTC
(In reply to Maik Qualmann from comment #9)
> Also exiftool finds the tags:
> 
> Country-Primary Location Name   : Aruba
> Country-Primary Location Code   : ABW
> 
> Maik

I can confirm that DK is somehow adding these references to Aruba at one point in my BQM workflow. I will go through that workflow tool by tool and report back on which tool in DK is adding this.

Do you prefer me to 1) continue in this bug, 2) open a new bug against the correct component when I've found it or 3) change the product & component of this bug?
Comment 11 Maik Qualmann 2019-06-10 17:16:53 UTC
Open a new bug if you have found the tool that should set this metadata unnecessarily. I suspect that you will apply a template containing this metadata.

Maik
Comment 12 jon33040 2019-06-10 18:00:57 UTC
You were right. Somehow the metadata template I was using had got Aruba set in it rather than unknown. When I changed that to unknown, the bogus extra tag went away and Flickr picked up on the geolocation data I'd added in DK.