Bug 496570 - {unique} does not take file extension into account
Summary: {unique} does not take file extension into account
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-Import (other bugs)
Version First Reported In: 8.5.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-22 02:37 UTC by grubz5
Modified: 2024-11-22 06:37 UTC (History)
1 user (show)

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


Attachments
Demonstration of bug (21.13 KB, image/png)
2024-11-22 02:38 UTC, grubz5
Details

Note You need to log in before you can comment on or make changes to this bug.
Description grubz5 2024-11-22 02:37:25 UTC
SUMMARY
Given raw+jpeg photo pairs, when importing or batch renaming these photos, the file extension is not taken into account by the {unique} modifier, which causes one of the photos in each pair to have a "_1" after it instead of them both sharing the same name (different extension).

STEPS TO REPRODUCE
1. Start an import or batch rename procedure on photos that are in raw+jpeg pairs
2. Use "[date]{unique}" as the renaming options
3. Observe incorrect names

OBSERVED RESULT
Each pair has one file with the expected date name, the other has date_1 as the name.

EXPECTED RESULT
Pairs should share the same name. The extension should be the only thing that differs.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
I believe this to be a regression, as I have been using this workflow for a long time and never had an issue until upgrading to 8.5.0. I believe it was working properly in 8.0.0.
Comment 1 grubz5 2024-11-22 02:38:33 UTC
Created attachment 176029 [details]
Demonstration of bug
Comment 2 grubz5 2024-11-22 02:55:04 UTC
Nevermind... I found the "a" option for the unique modifier that reintroduces the expected behavior. I did read all the patch notes, but I either missed this change (very possible) or it wasn't mention :)
Comment 3 caulier.gilles 2024-11-22 06:37:21 UTC
"a" key for the advanced rename unique modifier is described in the online doc here :

https://docs.digikam.org/en/main_window/image_view.html#renaming-photograph

Best

Gilles Caulier