[Digikam-devel] [digikam] [Bug 318357] New: regexp based image grouping

Christoph Anton Mitterer calestyo at scientia.net
Sun Apr 14 19:21:56 BST 2013


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

            Bug ID: 318357
           Summary: regexp based image grouping
    Classification: Unclassified
           Product: digikam
           Version: 3.1.0
          Platform: Other
                OS: All
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: Albums GUI
          Assignee: digikam-devel at kde.org
          Reporter: calestyo at scientia.net

Hi.

It seems that one can already group images together in digikam, but this
happens only manually (e.g. selecting them and then tell it to group them).

What I'd like to see is regular expression (ideally PCRE) based grouping rules.
Perhaps even on a per folder basis (maybe with subfolders inheriting the rules
from parent folders, if none are explicitly set or cleared).

WIth that one could easily do things like:
a) Group images:
foo\..+

b) a) Group images:
foo\.raw
foo\.jpeg
foo\.jpg
but no others

c) Group images:
foo\..+
but not
foo\.png

d) mightier things like, group
foo(-.+|).*
which I'd find handy cause I use about the following system:
The base image (typically the raw) is called after it's SHA1, e.g.
c5da46c6497eebe7634a6a02279490e9bbcb5efe.raw
images derived from it (e.g. JPEGs) have some string attached
c5da46c6497eebe7634a6a02279490e9bbcb5efe-foobarWhatever.jpeg

Now two problems come up.
1) Obviously we can't write "foo" in the regexps to mark the characters that
should be identical on all grouped images.
I would probably solve this by adding a field, which of the subpatterns (i.e.
the stuff in "(...)" ) needs to be identical.
This way one could e.g. write:
"^(.*)\.(jpeg|jpg|raw)$";1
To tell, for a file to be grouped, subpattern 1 must be identical and apart
from that any file ending with a dot . and jpeg, jpg or raw.
Or my example above with the hashsums:
"^(.*)(-.+|)\.(jpeg|jpg)$";1
To tell, for a file to be grouped, subpattern 1 must be identical, and either
followed by a dash - and one or more arbitrary characters (or by nothing)...
and then followed by a dot . and followed by some extensions.


2) There need to be a way to select the "primary" image, i.e. those which is
opened to be viewed, or from which tumbnails are created, etc.
Either one could do this by another regexp and/or by file flags like "most
recently created/modified".


Of course all that would be quite a complex system, on the other hand I think
it would be worth it, as it allows for very mighty grouping mechanisms to be
used.


Cheers,
Chris.

Reproducible: Always

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list