Bug 505093

Summary: Import filter not showing CR3 files
Product: [Applications] digikam Reporter: daerelas <dholmesaz>
Component: Import-MainViewAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 8.6.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In: 8.7.0
Sentry Crash Report:

Description daerelas 2025-06-01 14:58:36 UTC
SUMMARY
In the Import dialogue, selecting "Raw Files" as a filter option shows no files from a source with multiple CR3 files present. These same files are shown when the filter is changed to "All Files". 

STEPS TO REPRODUCE
1. Connect an SD card with source image files.
2. Select Import > Add Images.
3. Select the folder containing the source image files.
4. Change the import filter from "All Files" to "Raw Files".

OBSERVED RESULT
After Step 3, all files in the source folder are shown. However after Step 4, no files are shown.

EXPECTED RESULT
Display only CR3 files.

SOFTWARE/OS VERSIONS
Windows: 
macOS: Sequoia 15.5
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
In the source folder, there are 73 CR3, 75 JPG, and 3 MP4 files. All files, including the CR3 files, are importable by manual selection and by other means (Import New, ...). All files are otherwise treated normally, just not displayed when filtering on Raw in the import dialogue.
Comment 1 caulier.gilles 2025-06-01 16:22:35 UTC
Can you share a screen-cast of the problem. I cannot reproduce on my MacBook pro M1 with current 8.7.0.
Comment 2 Maik Qualmann 2025-06-01 16:57:37 UTC
The Import mime Raw type filter is a static list, and the Canon CR3 type is missing. We can't simply add it; it would be ignored if other filters have already been created in the config. Let's see what the best solution is.

https://invent.kde.org/graphics/digikam/-/blob/master/core/utilities/import/widgets/importfiltercombobox.cpp?ref_type=heads#L133

Maik
Comment 3 Maik Qualmann 2025-06-01 17:50:20 UTC
Git commit 4d50c11ab21048982a2c73e0a8c2a7d476f3a2eb by Maik Qualmann.
Committed on 01/06/2025 at 17:49.
Pushed by mqualmann into branch 'master'.

add canon cr3 mime type to import filter
Add import filter defaults button in the camera setup
FIXED-IN: 8.7.0

M  +1    -1    NEWS
M  +1    -1    core/utilities/import/widgets/importfiltercombobox.cpp
M  +30   -3    core/utilities/setup/camera/setupcamera.cpp
M  +1    -0    core/utilities/setup/camera/setupcamera.h

https://invent.kde.org/graphics/digikam/-/commit/4d50c11ab21048982a2c73e0a8c2a7d476f3a2eb
Comment 4 Maik Qualmann 2025-06-01 17:51:59 UTC
For the new filter to take effect, the defaults may need to be reset in the digiKam camera setup using the "Defaults" button.

Maik
Comment 5 Maik Qualmann 2025-06-01 17:55:29 UTC
Another note: alternatively, you can already add the CR3 type in your version under edit the RAW filter in the digiKam camera setup.

Maik