Bug 425777 - Missing metadata in certain columns in details view mode
Summary: Missing metadata in certain columns in details view mode
Status: CONFIRMED
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.73.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Brüns
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-25 12:32 UTC by Jacob
Modified: 2022-06-30 16:46 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
example (122.23 KB, image/png)
2020-08-25 12:32 UTC, Jacob
Details
example2 (171.57 KB, image/jpeg)
2020-08-26 10:10 UTC, Jacob
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob 2020-08-25 12:32:39 UTC
Created attachment 131165 [details]
example

SUMMARY
Hi,
Dolphin doesn't show certain metadata (e.g. 'date photographed', 'width', 'height') of images in the details view mode.

STEPS TO REPRODUCE
1. start Dolphin
2. navigate to a folder containing images
3. change to details view mode
4. make 'date photographed' column available

OBSERVED RESULT
The 'date photographed' column is empty.

EXPECTED RESULT
The 'date photographed' column shows the dates correctly.

SOFTWARE/OS VERSIONS 
Linux/KDE Plasma: Manjaro KDE
Kernel Version: 5.7.15-1-MANJARO
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION

1.
If I right-click on an image and select properties, then details, the date is correctly displayed in the last row ('Original Date Time').

2.
It would be awesome if I could sort my photos in chronological order. Currently, they can be sorted by filename or by modification date, but those sortings can become incorrect in certain cases, e.g. when the photos were taken by different devices (thus they're named differently) or some photos were edited (so their filename and/or modification date changes).
Comment 1 Nicolas Fella 2020-08-25 19:13:28 UTC
Do you have Baloo enabled?
Comment 2 Jacob 2020-08-25 19:35:49 UTC
(In reply to Nicolas Fella from comment #1)
> Do you have Baloo enabled?

I think yes, output of 'balooctl status' in terminal:

Baloo File Indexer is running
Indexer state: Idle
Total files indexed: 6 167
Files waiting for content indexing: 0
Files failed to index: 0
Current size of index is 9,97 MiB
Comment 3 Nicolas Fella 2020-08-26 09:13:28 UTC
looks like it is enabled.

I'm asking because judging by the code the column requires Baloo and once I turned it on the information is displayed for me.

Can you please run balooshow on a file where you expect it to be shown and show the output here?
Comment 4 Jacob 2020-08-26 09:28:29 UTC
input:
[...@... test]$ balooshow IMG_20180813_121043.jpg

output:
3545967949316866 66306 825610 IMG_20180813_121043.jpg [/home/.../Pictures/test/IMG_20180813_121043.jpg]
        Mtime: 1552470148 2019-03-13T10:42:28
        Ctime: 1598354047 2020-08-25T13:14:07
Comment 5 Nicolas Fella 2020-08-26 09:32:46 UTC
Seems like Baloo didn't extract the information. Otherwise we'd see a "Original Date Time" line here. That explains why Dolphin doesn't display it.

Do you have "Also index file content" enabled in the File Search settings?

Reassigning to Baloo now
Comment 6 Jacob 2020-08-26 10:10:07 UTC
So I enabled 'Also index file content' and restarted baloo, and now the output of 'balooshow' of the image file shows all the metadata.

However, my problem now is that Dolphin, in the 'Date photographed' column shows the 'Image Date Time' data from the balooshow output, and not the 'Original Date Time' data. It is problematic for me, because whenever I edit an image file, the 'Image Date Time' data changes to the date of the modification. I think it would be better if Dolphin used the 'Original Date Time' data in the 'Date photographed' column.
Comment 7 Jacob 2020-08-26 10:10:55 UTC
Created attachment 131193 [details]
example2
Comment 8 tagwerk19 2021-07-11 22:59:52 UTC
In reply to Jacob from comment #4)
> [...@... test]$ balooshow IMG_20180813_121043.jpg
You'd need to try a "-x":
    balooshow -x IMG_20180813_121043.jpg
to see the indexed metadata.

( ... comment #6)
> ... the 'Date photographed' column
> shows the 'Image Date Time' data from the balooshow output, and not the
> 'Original Date Time' data ...
I see the same - and agree that if the column/property is "Date Photographed" then the implication is the original date and time:
    photoDateTimeOriginal

Worth flagging as Confirmed...