| Summary: | Search for camera maker does not yield results for certain photos | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | José Oliver-Didier <jose_oliver> |
| Component: | Searches-Advanced | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | caulier.gilles, metzpinguin |
| Priority: | NOR | ||
| Version First Reported In: | 7.6.0 | ||
| Target Milestone: | --- | ||
| Platform: | Microsoft Windows | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | https://invent.kde.org/graphics/digikam/commit/a7cd3864444f6a7eae6d8d82427a53fe436f08bb | Version Fixed/Implemented In: | 7.7.0 |
| Sentry Crash Report: | |||
| Attachments: |
DebugView Log
Metadata Sidebar Camera Make selection options |
||
|
Description
José Oliver-Didier
2022-06-07 13:48:07 UTC
Created attachment 149532 [details]
DebugView Log
Attaching DebugView for log, some personal info redacted.
Which kind of database type did you use ? sqlite or mysql ? Gilles Caulier You want to search only in a specific album and in a date range from 2012-05-01 to 2022-06-06 for the make "NIKON"? There is recently a button to start a new empty search, I think the mistake is that you only selected one album. Maik (In reply to Maik Qualmann from comment #3) > You want to search only in a specific album and in a date range from > 2012-05-01 to 2022-06-06 for the make "NIKON"? > > There is recently a button to start a new empty search, I think the mistake > is that you only selected one album. > > Maik - I am using MariaDB 10.5 - I tried an empty search as well, and last case an album which contained such files. - Other images taken with Nikon appeared in the search results, but not the ones taken with Coolpix cameras. - Tried with other makes such as "Canon" and it did yield results. - Searching with the specific model "COOLPIX AW100" and Model = "Any" also yielded results. - Searching Model="COOLPIX AW100" and Make "NIKON" yielded no results. The metadata may not have been read in completely, the problem is known from Windows. Select an image that should be found in the search and see if the camera make appears in the Properties tab on the right sidebar. If not, you'll need to reload the metadata. Maik Created attachment 149535 [details]
Metadata Sidebar
I checked the sidebar and the Make metadata is shown. Also I queried the imagemetadata table in the MariaDB and the Make field is also correctly populated. Oddly, it seems to only affect this camera model.
Also tested here under Windows with MariaDB and 3 sample images from the web, no problems. Maik Now I see the problem in the log, you search for "NIKON CORPORATION". Only "NIKON" must also be present in the list. You then have to select that as well. This is not the same for search. Maik Created attachment 149537 [details]
Camera Make selection options
Interesting, but I do not see "NIKON CORPORATION" on the options list, I am only selecting "NIKON".
Ref attached screenshot of Camera Make selection options. I selected "NIKON" in the options list, "NIKON CORPORATION" is not in the drop-down options. However, the only shown photos are those with "NIKON CORPORATION" in the Make exif field as shown in the "ExifTool" tab. However, it is displayed as "NIKON" in the "Properties" tab. Seems that there something going on the displayed value and the value used in the search query. Ah, now the problem is clear. We shorten the camera manufacturer names because some manufacturers have long names (Co. Ltd. etc.). For me, NIKON without CORPORATION is found first in the DB, so it works. Hmm we'll probably have to allow the full name for the list. A LIKE search wasn't really good either, I remember. Maik Git commit a7cd3864444f6a7eae6d8d82427a53fe436f08bb by Maik Qualmann. Committed on 07/06/2022 at 18:38. Pushed by mqualmann into branch 'qt5-maintenance'. do not shorten camera make name in advanced search FIXED-IN: 7.7.0 M +2 -1 NEWS M +0 -1 core/utilities/searchwindow/searchfields.cpp https://invent.kde.org/graphics/digikam/commit/a7cd3864444f6a7eae6d8d82427a53fe436f08bb Git commit 4459c2b30837b6f47b985f3afba172e4949d12cc by Maik Qualmann. Committed on 07/06/2022 at 20:12. Pushed by mqualmann into branch 'qt5-maintenance'. use wildcard search for the camera make M +3 -1 core/utilities/searchwindow/searchfields.cpp https://invent.kde.org/graphics/digikam/commit/4459c2b30837b6f47b985f3afba172e4949d12cc (In reply to Maik Qualmann from comment #11) > Ah, now the problem is clear. We shorten the camera manufacturer names > because some manufacturers have long names (Co. Ltd. etc.). For me, NIKON > without CORPORATION is found first in the DB, so it works. Hmm we'll > probably have to allow the full name for the list. A LIKE search wasn't > really good either, I remember. > > Maik The shorten/simplified name, rather that displaying inconsistent verbose values for the Camera maker does seem like a nice feature, especially for the values displayed in Digikam's "Properies" pane. Flickr's Camera Finder comes to mind: https://www.flickr.com/cameras |