changing ctime photo timestamps to the real date
Yesterday i copy a bunch of photos from one computer to another and i lost the creation timestamp (important to sort the photos of several cameras). Lucky me that EXIF has that date...
exif.py comes with kde-base/kdeaddons-3.5.0
for i in sur/*;
do
ctime=`exif.py "$i" | grep DateTimeOriginal| cut -d= -f2|cut -d@ -f1|sed s/:/\ /g|awk '{print $1$2$3$4$5"."$6}'`
if [[ "$ctime" != "" ]]; then
touch -c -t $ctime "$i"
fi
done
0 comments