Bug 208920 - Add Exif sorter support to sort rename operation
Summary: Add Exif sorter support to sort rename operation
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-metadata (show other bugs)
Version: 1.0.0
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-30 00:32 UTC by bdbrot
Modified: 2022-01-31 21:40 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 bdbrot 2009-09-30 00:32:02 UTC
Version:           next (using Devel)
Installed from:    Compiled sources

I know, with DigiKam you can rename imagefiles with the exif-date. But only with a counting number at the end. But this number I do only need, if the exif-date is double. If you rename the files with year, month, day, hour, minute and second, it's not very often you need a additional number. exif-sorter proof it and do it very well. 

In Digikam you can sort your pictures by date. But only virtuell. It would be nice, if you have a button to make this real by move or copy the files in created folders named with the whole or a part of the exif date (or iptc-tags, or ...). exif-sorter do this very good, as well. 

But it's a separate program to start. My wish is to insert all functions from Amok-Exif-Sorter into Digikam.
Comment 1 bdbrot 2009-09-30 00:35:31 UTC
sorry if my english is not perfect.
Comment 2 bdbrot 2009-10-04 17:12:45 UTC
It should be a wish for the wishlist.
Comment 3 Andi Clemens 2009-10-04 17:32:13 UTC
It is a wish?
Comment 4 Andi Clemens 2009-11-27 18:43:49 UTC
SVN commit 1055252 by aclemens:

Add experimental modifier: 'Unique'.
I'm not totally sure how to handle this, maybe I need to restructure the parser
in the future to hold information about all files that should be renamed. Right
now it only renames one file after the other (which is actually a good thing,
but may be problematic in some cases).

This modifier will allow to have unique values from a renaming option, by
adding a number prefix if necessary.
The problem at the moment: I can not reset the modifier for every renaming
option, so if you use it more than once, the counter just increases.

I will add a little demo video on my Youtube account to show how it works.

bdbrot,
what do you think? Is this enough for you?
I explicitly implemented it as a modifier so it can be attached to any renaming
option, not only the date field.

Andi

CCBUG:208920

 M  +1 -0      CMakeLists.txt  
 M  +1 -0      tests/CMakeLists.txt  
 M  +2 -0      utilities/advancedrename/common/option.cpp  
 M  +4 -0      utilities/advancedrename/common/parseobject.cpp  
 M  +2 -0      utilities/advancedrename/common/parseobject.h  
 M  +9 -0      utilities/advancedrename/common/parser.cpp  
 A             utilities/advancedrename/parser/modifiers/uniquemodifier.cpp   [License: GPL (v2+)]
 A             utilities/advancedrename/parser/modifiers/uniquemodifier.h   [License: GPL (v2+)]


WebSVN link: http://websvn.kde.org/?view=rev&revision=1055252
Comment 5 Andi Clemens 2009-11-27 19:58:52 UTC
I am too stupid to convert videos with Linux software, cinelerra, kdenlive, avidemux, they all produce bad quality output for me here.
Uploading this to Youtube makes it not better :D
Anyway I hope you can see something here:
http://www.youtube.com/watch?v=jGKLAmGtNb4
Comment 6 Andi Clemens 2009-11-27 20:43:15 UTC
Ok I updated the modifier a little bit and it seems to work fine:
http://www.flickr.com/photos/26732399@N05/4138381199/in/pool-digikam-labs/

bdbrot,
is this what you wanted?
Comment 7 bdbrot 2009-11-29 01:06:21 UTC
----- Ursprüngliche Mail ----
> Von: Andi Clemens <andi.clemens@gmx.net>
> An: bernd.mullet@yahoo.de
> Gesendet: Freitag, den 27. November 2009, 20:43:17 Uhr
> Betreff: [Bug 208920] integrate exif-sorter functions rename sorting
> 
> https://bugs.kde.org/show_bug.cgi?id=208920
> 
> 
> 
> 
> 
> --- Comment #6 from Andi Clemens   2009-11-27 20:43:15 ---
> Ok I updated the modifier a little bit and it seems to work fine:
> http://www.flickr.com/photos/26732399@N05/4138381199/in/pool-digikam-labs/
> 
> bdbrot,
> is this what you wanted?
> 
> -- 
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.

It looks fine, thank you very much. The synthax I find in the helpfile, I think? 


__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com
Comment 8 Andi Clemens 2009-12-04 22:48:50 UTC
This modifier has actually no syntax... ok it has, but the tooltip doesn't show the parameter due to the string freeze we have now ;-)

Anyway you can use it like this:
{unique} - will append one digit numbers like 1,2,3,...
{unique:n} - will append n digit numbers, 
e.g. {unique:4} will append 0001, 0002, ...

In the future I will have some auto-detection (not possible with current infrastructure of the parser), so that it automatically adds digits if needed.
So {unique} should append
   01,02,03,04,05,06,07,08,09,10
instead of
   1,2,3,4,5,6,7,8,9,10
Comment 9 caulier.gilles 2011-12-23 10:03:04 UTC
BDBrot,

This file still valid using digiKam 2.4 ?

Gilles Caulier
Comment 10 caulier.gilles 2014-08-31 13:23:38 UTC
BDBrot,

This file still valid using last digiKam 4.2.0 ?

Gilles Caulier