Bug 468115

Summary: digikam 8.0.0-Beta1 hasn't imported tags
Product: [Applications] digikam Reporter: Steve Franks <stevef48>
Component: Maintenance-MetadataAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin, stevef48
Priority: NOR    
Version First Reported In: 8.0.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 8.0.0
Sentry Crash Report:
Attachments: Sample JPEG where tags are not shown
Screenshot showing idle Exiftool
attachment-2641545-0.html
attachment-2786679-0.html
attachment-2852528-0.html
attachment-2857559-0.html

Description Steve Franks 2023-04-03 10:15:32 UTC
Created attachment 157814 [details]
Sample JPEG where tags are not shown

SUMMARY
***
I transferred images tagged in 7.10 to another PC where I'm exploring digikam 8.0.0. None of the JPEG images imported (Tools|Maintenance| Find New Files) have tags. My Linux PC running 8.0.0 shows the correct tags.
***

STEPS TO REPRODUCE
1. Tag images.
2. Copy images and xmp files to new PC.
3. Read new files.

OBSERVED RESULT
digikam 7.10 shows 0 images without tags, 8.0 has 635 images without tags.

EXPECTED RESULT
Tags identical on both systems.

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

ADDITIONAL INFORMATION
XMP File contents:-
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2">
 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <rdf:Description rdf:about=""
    xmlns:exif="http://ns.adobe.com/exif/1.0/"
    xmlns:digiKam="http://www.digikam.org/ns/1.0/"
    xmlns:lr="http://ns.adobe.com/lightroom/1.0/"
    xmlns:tiff="http://ns.adobe.com/tiff/1.0/"
    xmlns:xmp="http://ns.adobe.com/xap/1.0/"
    xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
   exif:ExifVersion="0231"
   exif:FlashpixVersion="0100"
   exif:ColorSpace="1"
   exif:ExposureTime="1/1000"
   exif:FNumber="110/10"
   exif:ExposureProgram="2"
   exif:ExposureBiasValue="0/10"
   exif:MaxApertureValue="1024/256"
   exif:MeteringMode="3"
   exif:LightSource="0"
   exif:FocalLength="150/1"
   exif:FileSource="3"
   exif:CFAPattern="2 0 2 0 0 1 1 2"
   exif:CustomRendered="0"
   exif:ExposureMode="0"
   exif:WhiteBalance="0"
   exif:DigitalZoomRatio="100/100"
   exif:SceneCaptureType="0"
   exif:GainControl="0"
   exif:Contrast="0"
   exif:Saturation="0"
   exif:Sharpness="0"
   tiff:ImageWidth="5240"
   tiff:ImageLength="3912"
   tiff:Compression="1"
   tiff:PhotometricInterpretation="1"
   tiff:Orientation="1"
   tiff:SamplesPerPixel="1"
   tiff:PlanarConfiguration="1"
   tiff:XResolution="300/1"
   tiff:YResolution="300/1"
   tiff:ResolutionUnit="2"
   tiff:Make="OLYMPUS CORPORATION    "
   tiff:Model="E-M5MarkIII     "
   tiff:Software="Version 1.7                    "
   xmp:ModifyDate="2023-03-24T14:09:26"
   xmp:CreateDate="2023-03-24T14:09:26"
   photoshop:DateCreated="2023-03-24T14:09:26">
   <exif:Flash
    exif:Fired="False"
    exif:Return="0"
    exif:Mode="1"
    exif:Function="False"
    exif:RedEyeMode="False"/>
   <exif:UserComment>
    <rdf:Alt>
     <rdf:li xml:lang="x-default">                                                                                                                     </rdf:li>
    </rdf:Alt>
   </exif:UserComment>
   <exif:ISOSpeedRatings>
    <rdf:Seq>
     <rdf:li>200</rdf:li>
    </rdf:Seq>
   </exif:ISOSpeedRatings>
   <digiKam:TagsList>
    <rdf:Seq>
     <rdf:li>Places/Holidays/Malta</rdf:li>
     <rdf:li>Places</rdf:li>
     <rdf:li>Places/Holidays</rdf:li>
    </rdf:Seq>
   </digiKam:TagsList>
   <lr:hierarchicalSubject>
    <rdf:Bag>
     <rdf:li>Places|Holidays|Malta</rdf:li>
     <rdf:li>Places</rdf:li>
     <rdf:li>Places|Holidays</rdf:li>
    </rdf:Bag>
   </lr:hierarchicalSubject>
   <tiff:BitsPerSample>
    <rdf:Seq>
     <rdf:li>16</rdf:li>
    </rdf:Seq>
   </tiff:BitsPerSample>
   <dc:creator>
    <rdf:Seq>
     <rdf:li>Steve Franks                                                   </rdf:li>
    </rdf:Seq>
   </dc:creator>
   <dc:rights>
    <rdf:Alt>
     <rdf:li xml:lang="x-default">2022 Steve Franks                                              </rdf:li>
    </rdf:Alt>
   </dc:rights>
  </rdf:Description>
 </rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
Comment 1 Maik Qualmann 2023-04-03 10:39:06 UTC
No problem reading the tags here with the digiKam-8.0.0 from git/master. Since Exiv2 reports an error in the Olympus IFD Makernote header, make sure ExifTool is running in your version.
Also check the Advanced Metadata Settings for tags and reset the list to the default settings if necessary.
You also write something from XMP files, also check the settings for sidecars, whether reading is activated.

Maik
Comment 2 Steve Franks 2023-04-05 09:09:27 UTC
Created attachment 157865 [details]
Screenshot showing idle Exiftool

Two instances of Exiftool, one using 0% CPU
Comment 3 Steve Franks 2023-04-05 09:11:38 UTC
(In reply to Maik Qualmann from comment #1)
> No problem reading the tags here with the digiKam-8.0.0 from git/master.
> Since Exiv2 reports an error in the Olympus IFD Makernote header, make sure
> ExifTool is running in your version.
> Also check the Advanced Metadata Settings for tags and reset the list to the
> default settings if necessary.
> You also write something from XMP files, also check the settings for
> sidecars, whether reading is activated.
> 
> Maik

All settings appear to be correct. None have changed from 7.10.
Changing location of Exiftool cured the problem and it continues to be OK when the location is changed back.
Comment 4 caulier.gilles 2023-04-06 01:50:32 UTC
Hi Steve,

So, this file can be closed ?

Gilles
Comment 5 Steve Franks 2023-04-06 08:01:56 UTC
Created attachment 157888 [details]
attachment-2641545-0.html

Yes. There’s still a question, why did Digikam ignore Exiftool? The
location was correct.
Regards
Steve
Comment 6 Maik Qualmann 2023-04-06 11:33:38 UTC
I'll fix it, if wrong path to ExifTool is saved in config, it won't automatically update in settings when binary search found the correct one. The path is only updated when you select it manually.

Maik
Comment 7 Maik Qualmann 2023-04-06 17:44:31 UTC
The problem has already been fixed since Beta1.

Maik
Comment 8 Steve Franks 2023-04-07 15:18:36 UTC
Created attachment 157929 [details]
attachment-2786679-0.html

Thank you, I’ll download beta1.
Regards
Steve
Comment 9 caulier.gilles 2023-04-07 15:33:04 UTC
Forget beta1. last build is available here:

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

Gilles Caulier
Comment 10 Steve Franks 2023-04-08 08:37:10 UTC
Created attachment 157948 [details]
attachment-2852528-0.html

Ok, I will download that. I realised that Beta 1 is the version that ‘lost’
exiftool.

BTW I said that I would like to help with the manual. I checked it out from
GitHub and made some minor changes, but GitHub won’t let me check it back
in. I have obviously done something wrong, when I have time I will try
again.
Regards
Steve

On Fri, 7 Apr 2023 at 16:33, <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=468115
>
> --- Comment #9 from caulier.gilles@gmail.com ---
> Forget beta1. last build is available here:
>
> https://files.kde.org/digikam/
>
> Gilles Caulier
>
> --
> You are receiving this mail because:
> You reported the bug.
> You are on the CC list for the bug.
Comment 11 caulier.gilles 2023-04-08 09:22:46 UTC
Hi Frank,

documentation git repository is not on github, but KDE gitlab. Look here :

https://invent.kde.org/documentation/digikam-doc

Look in README file for dteails:

https://invent.kde.org/documentation/digikam-doc/-/blob/master/README.md

Best

Gilles Caulier
Comment 12 Steve Franks 2023-04-08 09:51:12 UTC
Created attachment 157950 [details]
attachment-2857559-0.html

That's what I meant, sorry I've been busy and haven't looked at it for a
while.
I cloned that with SSH, but was denied access when I tried to upload it.
I'll try again and let you know exactly what happens.
Steve