Bug 428967 - title field not populated for jpegs
Summary: title field not populated for jpegs
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kfilemetadata
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.68.0
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Pinak Ahuja
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-11 12:24 UTC by John Bray
Modified: 2024-03-05 17:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Sample jpeg to see what metadata baloo extracts (116.74 KB, image/jpeg)
2020-11-11 16:27 UTC, John Bray
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Bray 2020-11-11 12:24:14 UTC
For a file with

exiftool -G -Title -Caption -ObjectName -ImageDescription -Description -UserComment -Comment Example.jpg 
[XMP]           Title                           : XMP Title
[XMP]           Caption                         : XMP Caption
[IPTC]          Object Name                     : IPTC Object Name
[EXIF]          Image Description               : EXIF Image Description
[XMP]           Description                     : XMP Description
[EXIF]          User Comment                    : EXIF UserComment
[File]          Comment                         : File Comment

balooshow /home/john/Pictures/Example.jpg 
181456703194138645 2069 42248681 /home/john/Pictures/Example.jpg
        Mtime: 1603917429 2020-10-28T20:37:09
        Ctime: 1605025075 2020-11-10T16:17:55
        Cached properties:
                Comment: File Comment
                Description: EXIF Image Description

But title is not populated, so for programs like Dolphin which use it as a column header, they provide details for mp3s, pdfs, avis etc, but not jpgs.

Could Baloo:Title be populated from XMP:Title, or one of the other fields?

KDE installed on Mint 20, but running under MATE
Comment 1 Stefan Brüns 2020-11-11 16:10:57 UTC
Wrong component, metadata extraction is done by KFileMetaData.

Please recheck with KF 5.75 and a current libexiv2 (>= 0.27.3).
Comment 2 John Bray 2020-11-11 16:27:13 UTC
Created attachment 133239 [details]
Sample jpeg to see what metadata baloo extracts
Comment 3 John Bray 2020-11-11 16:33:47 UTC
Thanks for the quick reply. I don't think I can upgrade to those versions in Mint 20. I can confirm I have KFileMetaData 5.68 and libexiv2 0.27.2. I have attached Example.jpg so someone with more modern versions can see what baloo does with it.

FYI
https://api.kde.org/frameworks-api/frameworks-apidocs/frameworks/kfilemetadata/html/properties_8h.html

has

Title 	
Refers to the Title of the content of the file.

This can represented by the IDv1 tag TT2 (Title/songname/content description) or the TITLE in a PDF file or the 'dc:title' tag in DublinCore.

and I can see from Digikam that the files has both XMP Title and XMP Description in the DublinCore section of the XMP metadata, so it looks like the metadata should be picked up
Comment 4 John Bray 2020-11-12 18:01:52 UTC
Changing status
Comment 5 John Bray 2020-11-12 22:35:14 UTC
I upgraded a virtual machine to Ubuntu 20.10
balooctl -v
baloo 5.74.0
balooctl index Example.jpg
balooshow Example.jpg

and the results are the same as on Mint, only Comment and EXIF Image Description have been read into the baloo database, so no change

libexiv2 0.27.3-3
kfilemetadata 5.74.0

I can see no prospect of getting versions newer than that
Comment 6 Stefan Brüns 2023-11-16 20:51:10 UTC
Git commit 06d98a1b9ad475332af12df7de503ee4bb93478f by Stefan Brüns.
Committed on 16/11/2023 at 21:46.
Pushed by bruns into branch 'master'.

[Exiv2Extractor] Add support for XMP DC Title, Subject, Description

The XMP Dublin Core metadata may contain title, subject and description
values, extract it.

Update JPEG, JXL and WebP test images to include Title and Subject.
Related: bug 316766

M  +17   -3    autotests/exiv2extractortest.cpp
D  +0    -25   autotests/exiv2extractortest.h
M  +-    --    autotests/samplefiles/test.jpg
M  +-    --    autotests/samplefiles/test.jxl
M  +-    --    autotests/samplefiles/test.webp
M  +25   -0    src/extractors/exiv2extractor.cpp

https://invent.kde.org/frameworks/kfilemetadata/-/commit/06d98a1b9ad475332af12df7de503ee4bb93478f
Comment 7 Stefan Brüns 2024-03-05 17:29:54 UTC
Waiting for confirmation