Re: [Krename-users] Patch for pictures taken in continuous mode
Brought to you by:
domseichter,
stonki
From: Dominik S. <dom...@we...> - 2007-07-17 11:23:53
|
Hello, Thanks for your patch. It fixes a big problem in KRename. I did not yet hav= e a=20 chance to look at your patch nor to commit, but I will do so as soon as I=20 find a free minute. I am currently moving once again so it might take me a= =20 few days to finally commit your changes. I think your patch is worth a KRename 3.0.15 release for KDE3. An important= =20 bug will be fixed and KDE3 will still be around for some time (debian? ;) )= =20 so it is surely worthe the effort. I am not yet sure though why this problem exists anyway in the first place.= =20 =46ileOperation or BatchRenamer::work should really check if a file exists= =20 before overwriting it. best regards, Dom=20 Am Sunday 15 July 2007 schrieb Nicolas Labriet: > Hello, > > First of all, thank you very much for krename, it is so great and useful ! > > I have been using krename for a while now mostly to rename pictures by > date/time. > Some times ago I noticed that when using the continuous mode of my camera > some pictures where deleted when renaming. > I figure out that some pictures where taken at the same time (same second) > and thus get the same destination name and one of them will be overwritten > during the renaming process. > > I was tired of renaming the continuous pictures manually and decided to g= et > the krename source and work on it. > I must say that it didn't take me a long time to find where I had to chan= ge > things, thanks to your readable, self explaining and commented enough cod= e. > > So I come out with this small patch that add a '_' at the end of the > filename (before the extension) when two files have the same destination > name: > > Having those 3 pictures taken at the same time: > 1.jpg > 2.jpg > 3.jpg > > Before I had only one file left because they were renamed the same way: > 1.jpg -> 2007-07-07 12-08-21.jpg > 2.jpg -> 2007-07-07 12-08-21.jpg > 3.jpg -> 2007-07-07 12-08-21.jpg (the only one left) > > Now I still have my three files because they don't have the exact same > name: 1.jpg -> 2007-07-07 12-08-21.jpg > 2.jpg -> 2007-07-07 12-08-21_.jpg > 3.jpg -> 2007-07-07 12-08-21__.jpg > > Ok, it is not so pretty, the best thing will be to add a second to the > pictures (or to add ms to the Exif standard), but I still have my pictures > and that's what I care about. > > I know you are really busy porting the application to Qt4 but I hope you > will include this patch in the next release or resolve the problem in an > other way. > > I am not on the mailing list so please reply to this address. > Thanks again you're doing a great job ! > > Nicolas =2D-=20 ********************************************************************** Dominik Seichter - dom...@we... KRename - http://www.krename.net - Powerful batch renamer for KDE KBarcode - http://www.kbarcode.net - Barcode and label printing PoDoFo - http://podofo.sf.net - PDF generation and parsing library SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game, for KDE Alan - http://alan.sf.net - A Turing Machine in Java ********************************************************************** |