Bug 220202 - "Write Metadata to images" only modifies the first 201 files in any directory (tools menu entry)
Summary: "Write Metadata to images" only modifies the first 201 files in any directory...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Menus (show other bugs)
Version: 1.0.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-27 00:38 UTC by Vlado Plaga
Modified: 2017-08-02 21:09 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vlado Plaga 2009-12-27 00:38:24 UTC
Version:           1.0.0 (using KDE 4.3.2)
OS:                Linux
Installed from:    Ubuntu Packages

Similar to the report in #218633 I also lost metadata applied to hundreds of pictures.

Experimenting around with generated test images now allows me to give a more detailed description of where a loss occurs:

If you set digiKam to not save metadata in images, then apply a rating or some other tag to more than 201 pictures in one album (directory), and then choose "Write Metadata to images" from the "tools" menu, only up to 201 pictures per album will actually have metadata added.

I checked the results by running "exiv2 -p a", but looking at the files' modification dates should suffice.

I used a new user account, and only generated a few hundred small images using "convert" and a bash script, so that "Write Metadata" did not take too long.

The problem already occurs in digiKam 0.10 (which is the version that caused the trouble for me), and it is independent of the architecture (at least it occurs on both PPC and amd64).

Off-topic: I'm glad I have an update of my digiKam 0.9.4 database with the meta data I now wanted to have in my pictures... so I just need to make sure I call "Album / Write Metadata to images" for all the larger albums in the backed-up version (this worked in my tests), and merge my old and new digicam directories.
Comment 1 Marcel Wiesweg 2010-01-02 13:08:20 UTC
Vlado, you refer to "Tools -> Write Metadata to All Images"? "Write Metadata to Images" is in the "Album" menu.
Comment 2 Vlado Plaga 2010-01-02 13:35:04 UTC
Yes, I mean "Tools -> Write Metadata to All Images"! Sorry giving this bug a misleading title. The function under the "album" entry works with more than 201 images. Can the title be changed?
Comment 3 Marcel Wiesweg 2010-01-02 14:37:36 UTC
SVN commit 1069000 by mwiesweg:

Indeed album listing was cancelled after receiving the first package of ImageInfos,
which is typically 201 images.
Use a status variable, reorganize a bit.

BUG: 220202

 M  +2 -1      NEWS  
 M  +50 -35    utilities/batch/batchalbumssyncmetadata.cpp  
 M  +1 -1      utilities/batch/batchalbumssyncmetadata.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1069000