This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Populating Title field for jpegs

Tags: None
(comma "," separated)
vicarage
Registered Member
Posts
4
Karma
0

Populating Title field for jpegs

Tue Nov 10, 2020 6:19 pm
I was looking for a Linux file manager that picked up the title metadata for all the files I have. Dolphin does with its Title column for pdfs and avis, but not for jpegs

I have a sample jpeg with lots of metadata set

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

and have baloo running

balooshow /home/john/Pictures/Example.jpg
181456703194138645 2069 42248681 /home/john/Pictures/Example.jpg
Cached properties:
Comment: File Comment
Description: EXIF Image Description

But Dolphin leaves the Title column blank for it, and the metadata options for images are pretty useless, just being width, height and orientation (which are displayed)

How can I get Dolphin to populate the Title column for images?
vicarage
Registered Member
Posts
4
Karma
0

Re: Populating Title field for jpegs

Wed Nov 11, 2020 12:04 pm
I think part of the problem is src/kitemviews/private/kbaloorolesprovider.cpp

// Mapping from the URIs to the KFileItemModel roles. Note that this must not be
// a 1:1 mapping: One role may contain several URI-values
static const PropertyInfo propertyInfoList[] = {
{ "rating", "rating" },
{ "tag", "tags" },
{ "comment", "comment" },
{ "title", "title" },

where the Dolphin title maps to the Baloo title, when in fact it needs to map to Baloo 'description' for Jpgs

while I can read the source code, I little chance of getting a correct compilation environment to check out a solution
vicarage
Registered Member
Posts
4
Karma
0

Re: Populating Title field for jpegs

Wed Nov 11, 2020 12:26 pm
A request for Baloo to populate the Title field for jpgs has also been made. See https://bugs.kde.org/show_bug.cgi?id=428967
vicarage
Registered Member
Posts
4
Karma
0

Re: Populating Title field for jpegs

Thu Nov 12, 2020 10:40 pm
I installed Ubuntu 20.10, and observed no change in behaviour with baloo 5.74.9, dolphin 20.08.2
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: Populating Title field for jpegs

Sat Nov 14, 2020 11:39 pm
well, if you don't have KF 5.75 (as suggested in the bug report) you will not see any change, and so far very few distributions ship them, Kubuntu 20.10 is still at 5.74. So either have some patience, switch distribution or compile it yourself


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, mesutakcan, sandyvee, Sogou [Bot]