digiKam digest - 2009-09-06
Submitted by mikolajmachowski on Wed, 2009-09-09 23:20
Intensive work on improvements in advanced renaming features. Continuing fixes in color management. New theme in HTML export. Usability fixes across application. Update libraw to 0.8.2.
One of crucial features for advanced photo management is feature rich renaming tool. Thanks to Andi Clemens digiKam now has this tool.
- Users can now use metadata for renaming:

- They don't have to remember all obscure names and can use nice dialog with
filtering option:

- If directory structure was used for storing of some info it can be put in filenames without much ado, also all possible formats for date can be used:

Bug/wish table
| Opened bugs | Opened last week | Closed last week | Change | Opened wishes | Opened last week | Closed last week | Change | |
|---|---|---|---|---|---|---|---|---|
| digikam | 240 | +14 | -6 | 8 | 291 | +5 | -3 | 2 |
| kipiplugins | 105 | +5 | -3 | 2 | 155 | +2 | -2 | 0 |
Full tables:
NEWS reports
Issues closed last week (note: due to different methodologies numbers may not add up with table above)
digiKam
+digiKam 1.0.0-beta5 - Release date: 2009-09-xx
+
+NEW FEATURES:
+
+General : Metadata fields can be used for renaming in BQM and CameraUI.
+
+BUGFIXES FROM KDE BUGZILLA (alias B.K.O | http://bugs.kde.org):
+
+001 ==> 193482 : XMP/IPTC fields in Batch Rename tool.
+002 ==> 183435 : No more file manager at media:/camera.
+003 ==> 200758 : digiKam, dolphin, dc is not is perepherals list.
+004 ==> 206071 : Not reading image properties.
+005 ==> 191113 : digiKam doesn't recognize images with colorspace adobergb.
+006 ==> 206487 : Unsharp mask algorithm in batch processing should equal the one in kipi.
+007 ==>
+
+*************************************************************************************
Kipi-plugins
+002 ==> HTMLExport : 199533 : Enable dateframes theme in kipi-plugins [patch].
+003 ==> HTMLExport : 111509 : Subalbums not supported by HTML export.
+004 ==> RAWConverter : 205833 : Batch raw converter uses first dot in filename to determine file ending.
+005 ==> GPSSync : 199181 : Gps sync unable to use search field.
+006 ==>
+
Selected commits
extragear/graphics/digikam/utilities/imageeditor/canvas (2009-08-31 20:30)
SVN commit 1017859 by mwiesweg:
Use profile returned from window system.
Cache profile per screen (if set or not set).
Marked as TODO for Windows and Mac (dont know the situation there).
CCBUG: 197817
1 file changed
extragear/graphics/digikam (2009-08-31 20:30)
SVN commit 1017858 by mwiesweg:
Implementation to read ICC profiles set system-wide according to ICC profiles
from X specification. Code taken gratefully from KOffice.
CCBUG: 197817
2 files changed
extragear/graphics/digikam/utilities/manualrename/parsers (2009-09-01 18:05)
SVN commit 1018364 by aclemens:
Add ellipsis to dialog pased parser buttons
3 files changed
extragear/graphics/digikam/utilities/manualrename/parsers (2009-09-01 18:46)
SVN commit 1018393 by aclemens:
add some more method descriptions
1 file changed
extragear/graphics/digikam/utilities/manualrename/parsers (2009-09-01 20:16)
SVN commit 1018469 by aclemens:
The tmp qstring needs to be defined before the conditional compilation,
to avoid compile errors.
1 file changed
extragear/graphics/digikam/utilities/manualrename/parsers (2009-09-02 11:38)
SVN commit 1018848 by aclemens:
Remove old code: firstLetterUppercase() method doesn't belong in the
base parser class, move it to FilenameParser.
Also make the method static, if we ever need it in some other parser
code.
4 files changed
extragear/graphics/digikam/utilities/manualrename/parsers (2009-09-02 11:33)
SVN commit 1018836 by aclemens:
ParseInformation container doesn't need a metadata and author field
anymore. Both values will be fetched by the MetadataParser itself.
1 file changed
extragear/graphics/digikam/utilities/manualrename (2009-09-02 11:31)
SVN commit 1018833 by aclemens:
remove old code: since the ManualRenameParser is already registered in
the ManualRenameWidget, we don't need to create a parser object in the
parse() method anymore.
1 file changed
extragear/graphics/digikam (2009-09-02 10:53)
SVN commit 1018805 by aclemens:
the method updateCurrentTagList() is rather useless, just call
slotTabChanged() in the MetadataPanel constructor to avoid an empty
Exif Viewer (or whatever viewer is the current one) on first startup.
3 files changed
extragear/graphics/digikam/utilities/manualrename/parsers (2009-09-02 11:02)
SVN commit 1018806 by aclemens:
Resize the MetadataParser dialog, 450px:450px should be ok
1 file changed
extragear/graphics/digikam/utilities/manualrename/parsers (2009-09-02 10:33)
SVN commit 1018798 by aclemens:
Some QString methods (like startsWith() and endsWith()) are more efficient if they are passed a QLatin1String, avoiding an implicit conversion from const char *.
1 file changed
extragear/graphics/digikam (2009-09-02 10:18)
SVN commit 1018792 by aclemens:
Remove AuthorParser class, it is not clear enough what an author is (and
most of the time 'author / creator' will not be set in the metadata on
import anyway.
The author / creator can always be extracted with the MetadataParser.
We could instead create a CopyrightParser and query the template system,
if this should ever be needed. This will work only in BQM since images
that are going to be imported have not been assigned a template yet.
4 files changed
extragear/graphics/digikam/utilities/manualrename/parsers (2009-09-02 09:57)
SVN commit 1018787 by aclemens:
setStretch() is Qt 4.5 only, use addStretch() instead
1 file changed
extragear/graphics/digikam/utilities/manualrename/parsers (2009-09-02 13:20)
SVN commit 1018949 by aclemens:
Use a separate MetadataParserDialog class, to clean up
slotTokenTriggered()
2 files changed
extragear/graphics/kipi-plugins/htmlexport/themes (2009-09-02 09:30)
SVN commit 1018776 by gateau:
Added "Date Frames" theme by Elizabeth Marmorstein
BUG:199533
3 files changed
extragear/graphics/kipi-plugins/htmlexport (2009-09-02 09:30)
SVN commit 1018775 by gateau:
Export collection comment and image time.
Patch by Robert Marmorstein
CCBUG:199533
3 files changed
extragear/graphics/digikam (2009-09-02 00:16)
SVN commit 1018597 by aclemens:
We do not need all the buttons from MetadataSelectorView in the
MetdataParser dialog:
- Add a method to get all viewer objects from MetadataPanel
- Add a method to set the control elements in a MetadataSelectorView
5 files changed
extragear/graphics/digikam/utilities/manualrename (2009-09-01 23:37)
SVN commit 1018573 by aclemens:
Add semi-automatic button layout:
If the buttons don't fill all columns, the last button will be expanded
to fit the overall layout.
3 files changed
extragear/graphics/digikam/utilities/manualrename/parsers (2009-09-02 17:46)
SVN commit 1019012 by aclemens:
use different icon for FilenameParser
1 file changed
extragear/graphics/digikam (2009-09-02 21:23)
SVN commit 1019076 by aclemens:
Add new DirectoryNameParser class to ManualRename utility:
This parser can be used to add a directory name (from the image
filepath).
The normal token [dir] will return the current directory, a sequence of
'.' characters can be used to move up in the directory hierarchy:
filePath: /mnt/data/fotos/2006/lala/0001.jpg
parseString: [dir..]_[dir.]_[dir]_$
will return:
fotos_2006_lala_0001.jpg
as the new filename.
4 files changed
extragear/graphics/digikam/utilities/manualrename/parsers (2009-09-02 22:14)
SVN commit 1019088 by aclemens:
do not assign QString, use clear() instead
1 file changed
extragear/graphics/digikam/utilities/manualrename (2009-09-03 12:50)
SVN commit 1019339 by aclemens:
Use a timer to avoid immediate parsing of the ManualRenameWidget text.
Especially when using metadata keywords, entering a new name can be very
slow (strangely in BQM it is much slower then in CameraUI).
Using a timer gives the user enough time to enter the new name.
2 files changed
KDE/kdegraphics/libs/libkdcraw (2009-09-03 17:47)
SVN commit 1019440 by cgilles:
updated internal Libraw to 0.8.2 release
11 files changed
extragear/graphics/digikam (2009-09-04 12:59)
SVN commit 1019784 by aclemens:
First implementation of token selection in the ManualRenameInput widget:
CTRL+click on a token word in the line edit widget will mark it and
enable two buttons, to move the token around in the parse string.
Right now the movement is broken since I just changed nearly all code
before the commit (;-)), but at least the tokens can be selected.
To make this work, the main parser needs to generate a map of tokens,
where the key is a coordinate pair in the line edit widget and the value
is the replaced string. I think this is the most easy implementation, I
have not found a better solution yet. Since the line edit widget doesn't
know parsers (or at least token strings), it can not filter them
directly.
So the tokenMap seems to be the best solution.
Note: the tokenMap is not generated in BQM and therefore selecting
tokens won't work in there. I have not yet figured out why, need to
check that.
The next steps: Fix movement, maybe highlight token words (either by
mouse over or my different colors, but this is not possible with
KLineEdit).
http://websvn.kde.org/?view=rev&revision=1019784
16 files changed
KDE/kdegraphics/libs/libkexiv2/test (2009-09-04 10:53)
SVN commit 1019656 by cgilles:
new test program to check erase tag method
2 files changed
extragear/graphics/digikam/utilities/manualrename (2009-09-04 13:46)
SVN commit 1019793 by aclemens:
use a static method instead of a hard coded string
3 files changed
extragear/graphics/digikam/utilities/manualrename (2009-09-04 13:46)
SVN commit 1019792 by aclemens:
Fix token selection: if a token could not be parsed (this happens quite
often in MetadataParser), it was not selectable, since the map was not
generated correctly. To fix this, create an entry in the map and
parseString for every token that the parser analyzed and set it with a
special string (right now "!!!EMPTY!!!"). When creating the final new
name, remove this special string from the name again.
2 files changed
extragear/graphics/digikam/utilities/imageeditor/canvas (2009-09-04 16:43)
SVN commit 1019825 by mwiesweg:
Provide all workspace profiles for color space assignment and improve preselection
1 file changed
extragear/graphics/digikam (2009-09-04 16:43)
SVN commit 1019827 by mwiesweg:
Fix subtle bug in the JPEG loader that broke scanning images:
jpeg_finish_decompress was moved from the data loading code down below reading the ICC profile,
which was broken previously because the decompressing had already been closed.
When image data is not loaded (as for scanning), calling jpeg_finish_decompress without
calling jpeg_start_decompress before resulted in an error, which meant the loader returned
false before setting width and height.
BUG: 206071
2 files changed
KDE/kdegraphics/libs/libkexiv2/libkexiv2 (2009-09-04 19:24)
SVN commit 1019869 by mwiesweg:
Add first revision of code using Exiv2 PreviewManager.
Need to find efficient method to create manager.
2 files changed
KDE/kdegraphics/libs/libkexiv2/libkexiv2 (2009-09-04 17:37)
SVN commit 1019840 by mwiesweg:
Interpret the Exif.Iop.InteroperabilityIndex and Exif.Nikon3.ColorSpace
for AdobeRGB images when main color space is set to uncalibrated.
BUG: 191113
CCBUG: 195050
1 file changed
extragear/graphics/digikam (2009-09-04 16:42)
SVN commit 1019823 by mwiesweg:
Clear image and thumbnail cache if relevant color-managed view options changed
CCBUG: 195050
4 files changed
extragear/graphics/digikam/libs/threadimageio (2009-09-04 19:32)
SVN commit 1019872 by mwiesweg:
Implement suggested behavior from b.k.o. for loading fast + high quality previews.
CCBUG: 205776
3 files changed
extragear/graphics/digikam/utilities/manualrename (2009-09-04 21:35)
SVN commit 1019923 by aclemens:
When a token (or any text) is selected, replace the selection with a new
token string if a quick access button has been pressed.
2 files changed
extragear/graphics/digikam/utilities/manualrename (2009-09-05 10:38)
SVN commit 1020047 by aclemens:
Changing the tooltip again...
As you can see, I'm not happy with it :-) How can we describe this
better? Maybe you have a better idea?
Note: The tooltip will appear in the line edit tooltip as well as in the
tooltip that can be seen when clicking the info button.
CCMAIL:digikam-devel@kde.org
1 file changed
extragear/graphics/digikam/utilities/manualrename (2009-09-05 10:18)
SVN commit 1020044 by aclemens:
We can not assume that a parse has been run before calling the
tokenMap() method.
Also creating the map on every parse is inefficient, too. Instead of
creating the map in the parse() method, create it in the tokenMap()
method by applying the parse string.
This way the tokenMap is only created when CTRL+clicking in the line
edit widget.
This will also fix the token selection in BQM.
7 files changed
extragear/graphics/kipi-plugins/dngconverter/dngwriter (2009-09-05 09:58)
SVN commit 1020041 by cgilles:
fix makernotes after DNG creation. This is require to ORF files
This fix require libkexiv2 for KDE 4.4 for this moment. I'm waiting
0 files changed
branches/extragear/graphics/digikam/1.0-databaseext (2009-09-05 14:09)
SVN commit 1020178 by foerster:
Added implementation of database error handler which shows a indeterminate progressbar dialog.
In the meantime the database state will be automatically tested in background.
If the user cancels this dialog, the current query will be rejected.
8 files changed
extragear/graphics/digikam/utilities/manualrename (2009-09-05 14:05)
SVN commit 1020176 by aclemens:
New way of selecting a token: Press and hold CTRL and hover over the
token words to mark it, press the left mouse button to finally select
it.
2 files changed
branches/extragear/graphics/digikam/1.0-databaseext/libs/database (2009-09-05 17:31)
SVN commit 1020210 by mwiesweg:
Add a method to copy a query, using the current connection
2 files changed
extragear/graphics/digikam/utilities/imageeditor/canvas (2009-09-05 18:31)
SVN commit 1020214 by mwiesweg:
Use _ICC_PROFILE as atom name. The specification itself says it is _ICC_Profile,
but though it should be right per definition (because it _is_ the specification),
obviously it's wrong, at least dispwin uses _ICC_PROFILE.
CCBUG: 197817
1 file changed
extragear/graphics/digikam/utilities/manualrename (2009-09-05 21:50)
SVN commit 1020250 by aclemens:
Fix mousePressEvent: call original event handler to be able to click the
reset button in the line edit widget
1 file changed
extragear/graphics/digikam/utilities (2009-09-05 22:44)
SVN commit 1020254 by aclemens:
Remove custom rename options, ManualRename utility is the default option
now.
http://websvn.kde.org/?view=rev&revision=1020254
3 files changed
extragear/graphics/digikam/utilities/manualrename (2009-09-06 11:33)
SVN commit 1020435 by aclemens:
Don't be too picky: If a token is highlighted and the mouse cursor is
not over the selection, pressing the left mouse button should still select it.
1 file changed
extragear/graphics/digikam/utilities/cameragui (2009-09-06 13:06)
SVN commit 1020452 by aclemens:
simplify code: we already decide which widgets to enable in
slotRadioButtonClicked(), we don't need to handle this again in
readSettings(). Just use the id provided to the slot to activate the
widgets appropriately.
1 file changed
extragear/graphics/digikam/utilities (2009-09-06 16:26)
SVN commit 1020530 by aclemens:
make BigButtons the default token input style
3 files changed
extragear/graphics/digikam/utilities/manualrename/parsers (2009-09-06 14:16)
SVN commit 1020478 by aclemens:
API change: Parser::parse() is not the abstract method anymore, use
parseTokenString() now to implement the parsing functionality.
Since every parse method starts with a stringIsValid check, we have
repetitive code here. To void this, make parse() a normal class method
and use the abstract method parseTokenString() to implement the actual
parsing.
parseTokenString() is called from within parse(), after the checks have
been done.
14 files changed
extragear/graphics/digikam (2009-09-06 23:01)
SVN commit 1020656 by aclemens:
New batch tool 'rename': This tool will be used to rename files with
BQM.
Right now it is not working correctly and is disabled. You can open the
tool, but it will not rename anything.
Gilles,
I will provide a patch to enable it, but this patch also is not able to
rename files.
Maybe you have an idea what to do then.
9 files changed


Wow! Very nice work with
Wow! Very nice work with renaming tool! all the time you guys are making Digikam better and better with such quality that just rocks!
Keep it coming!!
Can't find the rename tool
Can't find the rename tool (in a recent svn checkout) - is it only available when importing pictures?
I'm working on integrating it
I'm working on integrating it into the AlbumUI as well.
Right now it is only available while importing and in the BQM (Batch Queue Manager).
I guess the next beta version will have it integrated.
Andi
I have created some simple
I have created some simple dialog for renaming in AlbumUI, but something is very slow. So it will not be committed before the IO problems get fixed.

Right now it looks like this (with the new modifier tokens):