[Digikam-users] Digikam-users Digest, Vol 31, Issue 5

Arnd Baecker arnd.baecker at web.de
Wed Dec 5 07:03:33 GMT 2007

Hi Paristo,

On Wed, 5 Dec 2007, Paristo wrote:

> > > I have taken copies of all my pictures and i have few hundreds albums
> > > and i just noticed that exiv2 command dont support wildcards. Or
> > > actually it support but it dont understand difference between file and
> > > directory.
> It seems everyone forget this info, i have backups from all pictures
> (actually many versions) ;-)

Excellent! (sorry for sounding patronizing, but it is better
to mention this everytime, because someone else just reading that
particular message might not have a backup ;-).

>  http://www.linuxforums.org/forum/linux-newbie/105360-recursive-bash-rename-script.html
> > For more complicated loops:
> > http://tldp.org/LDP/abs/html/loops1.html
> >
> > (Warning repeated: if you do something wrong here,
> > you might ruin your images ...)
> Thanks, i will check that. I have backups taken and all what i need is
> get IPTC tags off.

Ok, now that the backup stuff is out of the way ;-):
Attached is a python script where you just have
to modify the command you would like to use
and uncomment the actual call to run that command.
(and, after testing, comment out one line asking
for confirmation after every file).

Once it works you could post the modified version...

Fortunately python code is very readable, but
don't hesitate to ask any questions!

HTH, Arnd

P.S.: Of course the same could be done with a shell script ... ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: recurse_dirs.py
Type: text/x-python
Size: 1497 bytes
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20071205/652ad726/attachment.py>

More information about the Digikam-users mailing list