Bug 500635 - Auto import files with predefined extensions
Summary: Auto import files with predefined extensions
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Settings (other bugs)
Version First Reported In: 8.5.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-23 20:16 UTC by Freddie Witherden
Modified: 2025-02-23 20:16 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Freddie Witherden 2025-02-23 20:16:15 UTC
When importing files from a memory card it would be nice if additional/alternative extensions can be specified such that if these files exist on the card they are imported too.  There are two good use-cases for this:

1. For those who shoot RAW + JPEG it would mean we only need to select *either* the RAW or JPEG files.  The remainder would be picked up automatically from the alternative extension mechanism.  So if I select foo.ARW and foo.jpg exists on the card it is brought over, too.  (Then in the album one can use the existing group-by tool to merge the RAW and JPEG images.)

2. In RAW workflows where one might open a RAW file in an application such as RawTherapee or Darktable (both of which create sidecar files) before import this would enable the sidecars to be brought in automatically.  This is useful if one has done any preliminary edits as they will now be saved.

The logic would be something like

for f in import_files:
    for e in additional_extensions:
        if f'{f}.{e}' in directory:
            import_files.append(f'{f}.{e}')
        if f'{f[:-3]}.{e}' in directory:
            import_files.append(f'{f[:-3]}.{e}')
           
but of course made robust against files whose extensions are not three letters.