Re: Sorting a directory for a slide show.
- From: birre <spamtrap@xxxxxxxxxxxx>
- Date: Mon, 26 Mar 2007 11:30:45 +0200
On 2007-03-24 18:21, Dave Kelly wrote:
Notice how this snippet of my directory is sorted.
anneshouse-295.jpg
anneshouse-296.jpg
anneshouse-297.jpg
anneshouse-298.jpg
anneshouse-299.jpg
anneshouse-29.jpg
anneshouse-2.jpg
anneshouse-300.jpg
anneshouse-301.jpg
anneshouse-302.jpg
anneshouse-303.jpg
anneshouse-304.jpg
For the purposes of burning a DVD ( probably with K3B ),
How do I assure that the pictures are placed in sequential order.
This is a series of a thousand pictures taken over a 9 month period showing the building of a house.
TIA
Dave
Well, then you must think about this from the beginning when you name the files :-)
Some stupid date formats as mm/dd/yy also make problems when sorting files.
I made a script that archive my pictures to names as 20040417-221720.jpg ,
using the EXIF data included in all digital photos, so they will be sorted
after the time I took the photo.
You can test this: if you have digital photos, and exiftran installed.
mkdir archive
for i in `find . -name "anneshouse*.jpg" -print`
do
exif=$(exiftran -d $i |grep '0x0132' |sed -e 's,.*Date and Time.*\(200.\):\(..\):\(..\) \(..\):\(..\):\(..\),\1\2\3-\4\5\6.jpg,')
echo $exif ${#exif} # for debug
if [ ${#exif} -eq 19 ]
then
cp $i archive/$exif
fi
done
/birre
.
- Follow-Ups:
- Re: Sorting a directory for a slide show.
- From: Maurice Batey
- Re: Sorting a directory for a slide show.
- References:
- Sorting a directory for a slide show.
- From: Dave Kelly
- Sorting a directory for a slide show.
- Prev by Date: Re: sane-find-scanner
- Next by Date: Re: I've had it with Windows--I'm switching to Linux
- Previous by thread: Re: Sorting a directory for a slide show.
- Next by thread: Re: Sorting a directory for a slide show.
- Index(es):
Relevant Pages
|