display pictures sorted by filename

g gsv000 at comcast.net
Tue Mar 1 21:39:48 GMT 2022


Thank you for your answer Andreas.
It is very helpful.
In my case I will want to avoid setting the exif date (I want to keep 
the file unchanged) but will change the mtime.

Thank you again.



On 2/28/22 16:00, Andreas Schleth wrote:
> Hi Georgios,
> 
> I had a similar problem with ~10k scanned images from color slides a few 
> years ago.
> To deal with it I used the perl script attached here together with some 
> custom shell scripts to pack the commandlines for batches of images 
> together.
> The script takes two images and two date-strings. It then tries to find 
> the number part of the image file names, calculates the number of images 
> in between and then sets exif and file dates at equal intervals between 
> the two dates. This allows for sorting in KPA and - if you take smaller 
> batches - to approximately time the images correctly. Not perfect but 
> good enough.
> 
> Here is a real use case (a simple shell script - just a sequence of 
> command lines):
> """
> exif_date_range k140_01 4.2.6-14:00 k140_30 4.2.6-22:0
> exif_date_range k140_31 10.2.6  k140_32
> exif_date_range k140_33 15.3.6  k140_36 20.4.6
> exif_date_range k140_37 27.4.6 k140_43
> exif_date_range k140_44 28.4.6 k140_50
> mv new/* .
> rmdir new
> 
> """
> The images k140_01 to .._30 all were taken on Feb 4th 2006.
> 
> You might need to fiddle with the script to get the numbering detection 
> right.
> Also you need the respective perl modules installed (the lines with "use 
> ..."). They usually come with the packages of your distribution.
> 
> Happy tagging, Andreas
> 
> 
> Am 28.02.22 um 21:15 schrieb g:
>>
>> Hi,
>>
>> I find myself needing to order scanned images in time and try to 
>> assign dates to them. The filenames themselves are reasonably sorted, 
>> i.e. when I list the filenames alphabetically they are also close to 
>> ordered in time. The problem is that the files themselves have mtimes 
>> that are practically randomly ordered and it looks to me that 
>> kphotoablum uses mtime as the sorting criterion in the absence of exif 
>> info etc.
>> Is there a way for me to tell kphotoalbum to display the selected 
>> pictures ordered by filename? (For example we can say View|Show oldest 
>> first or show newest first. Could we not use other criteria for 
>> ordering selected images?).
>>
>> As an alternative I was thinking about a small script that would sort 
>> the files by name, and then assign/touch the mtime attribute, 
>> incrementing it by an hour or a day for each successive file. Am I 
>> overthinking this?
>>
>> A made-up example:
>>
>> I have   filename scan_19931020.tiff  with mtime 2022-01-22T101112
>> and then          scan_19891101.tiff  with mtime 2022-02-22T103344
>> and so on.
>>
>>
>> Thank you.
>>
>> Georgios
>>
>>
>>
> 



More information about the KPhotoAlbum mailing list