Bug 88783 - Allow use of a batch file to download images to provide naming flexibility
Summary: Allow use of a batch file to download images to provide naming flexibility
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Settings (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-03 19:14 UTC by David Aldred
Modified: 2022-01-26 11:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Aldred 2004-09-03 19:14:07 UTC
Version:            (using KDE KDE 3.2.3)
Installed from:    Mandrake RPMs
OS:                Linux

Would it be possible to add a plug-in script option to the Camera image downloading function (or as an optional replacement)?

What I have in mind is this: my camera (a Fuji) titles pictures as 'DSFC0xxx.jpg' on the card, with xxx incrementing through the pictures.  This isn't all that good when storing a lot of them on a PC!

Fuji's own Windows software creates a new directory called 'YYYY_MMDD' (as in the date of the download) , and naming each file 'YYYY_MMDD_HHMMSSaa', where the date/time details come from the creation time of the picture - 'aa' becomes 'ab' and so on if more than one 
picture is taken in  the same second.  Thus a picture taken on 12 August at 15:30:44 and downloaded on return home on 15 August would be found in 2004_0815/2004_0815_153044aa .  Not a pretty naming convention, but functional!

I'd like to have Digikam do the same - but it's easy to write a Perl script to 
do it, and it occurred to me that if Digikam could call a download script, 
rather than hardcoding a naming convention, then users could define their own 
naming conventions and perhaps upload suitable scripts to a repository 
somewhere to save people reinventing wheels.   This would only apply to USB 
MSS cameras, of course, and would be in addition to the existing 
functionality.
Comment 1 Renchi Raju 2004-09-28 21:52:33 UTC
custom renaming of items while downloading has been implemented. instead of what you suggested (using an external batch script), an internal implementation is provided which splits the name into three selectable components: prefix, exif datetime, sequence number. more advanced customization can be done by using a strftime formatted prefix. Note: the sequence number can be added in the prefix using something like %%03d . more details on this will be available from the digikam manual