Bug 472881 - Grouping/Versioning: add grouping by filename with version
Summary: Grouping/Versioning: add grouping by filename with version
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-ItemGroup (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-01 15:02 UTC by Eyal
Modified: 2023-08-04 09:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal 2023-08-01 15:02:54 UTC
Digikam supports versioning. The Image Editor and Batch Manager support automatically saving modified images as a version of the original.

However there is no automatic method to group image versions. If, for example, many images are processed in a Batch, they need to be grouped manually one by one.

I suggest to add "Group Selected by Filename and Version" (under the Groups sub-menu). This action will match filenames but considering only the part of the filename before "_v*".

(Note: I understand some users may have different version naming conventions, which do not necessarily use _v1 _v2 etc, and they will require different handling, maybe "Groups Selected by RegEx". However this bug refers specifically to support the standard versioning scheme used by Digikam.)
Comment 1 Maik Qualmann 2023-08-01 15:13:04 UTC

*** This bug has been marked as a duplicate of bug 318357 ***
Comment 2 Eyal 2023-08-01 15:28:39 UTC
I understand that technically my suggestion is a private case of a more generic / RegEx grouping.

However, from a user perspective, grouping by Digikam's standard versioning scheme is less error prone than RegEx, priovides a more complete versioning solution, and will probably address the needs of the vast majority of users.

Also, from a development point of view, it should simpler to add grouping by standard versioning. As RegEx can have very unexpected results (for non-experts), sooner or later RegEx grouping will require  a complex UI which simulates the results before applying them, and "Undo last grouping".

So I kindly ask that you keep my suggestion separate from RegEx grouping.
Comment 3 Maik Qualmann 2023-08-01 16:33:32 UTC
It's not just about RegEx grouping, but about grouping different filename schemes. RegEx in the GUI was the reason we never integrated the patch.

Maik
Comment 4 Eyal 2023-08-01 17:11:05 UTC
So the fix for bug 318357 will also group these?

filename.raw
filename_v1.jpg
filename_v2.jpg
Comment 5 Maik Qualmann 2023-08-01 17:26:18 UTC
No, RegEx would be necessary here.

Maik
Comment 6 Eyal 2023-08-01 17:44:54 UTC
So why is this a duplicate of the other bug?

I still wish to file a bug to have grouping that supports Digikam's versioning scheme.

As it is, I can't file this bug because you mark it as a duplicate of another bug, which is apparently fixed but the fix doesn't really apply to my bug...
Comment 7 Maik Qualmann 2023-08-01 18:12:35 UTC
Bug 318357 also addresses your request to see these comments:

https://bugs.kde.org/show_bug.cgi?id=318357#c22
https://bugs.kde.org/show_bug.cgi?id=318357#c30

We don't need bug wishes as duplicates, it would be a pain to manage all of them.

Maik
Comment 8 Eyal 2023-08-01 18:16:22 UTC
But I asked if the fix for bug 318357 will handle filename_v1, filename_v2, etc. - you answered it will not.
I'm a bit confused.
Comment 9 Maik Qualmann 2023-08-01 18:20:05 UTC
By the way, bug 338882 also deals with grouping of versioned files. And also Bug 318357 is not closed and is still open.

Maik
Comment 10 Eyal 2023-08-01 19:04:47 UTC
Bug 338882 - is mostly ignored from 2014, and it is about *automatic* grouping (ie. no user intervention). 
Bug 318357 - I still don't understand if it covers the Digikam's own versioning.
Comment 11 Maik Qualmann 2023-08-01 19:43:17 UTC
Bug 318357 addresses the problem of grouping filenames with different schemes, not only versioning but also. So possibly to be able to group different file names as plugins and not to integrate every grouping problem individually.

Well, I can make your bug standalone again, but like bug 338882, it's a low priority at the moment, there are more important things to do.
Maybe next year we can get a GSoC-2024 student to work on it.

Maik
Comment 12 Eyal 2023-08-01 20:08:48 UTC
I think it should be standalone.

Regarding priority it's of course your decision. I can only ask you to consider this:

Digikam has versioning.
Digikam has grouping.
But the two features don't work together.

If I batch process thousands of photos which creates thousands of image pairs, I have no way to group them except manually one by one.

So I only ask that grouping support Digikam's own versioning scheme.
Not "every grouping problem", not support versioning scheme of other tools.

In any case, thank you for the attention and patience.