Blog of Robert Borst

My Links

Blog Stats

Archives

Collegues

Computer related stuff

Sport

sorting pictures from a Theme party by date and time.

One of the websites i maintain is for a yearly party in a small village

A lot of people go there and the fun is not only in the party itself, but also in the pictures that are taken.

This means that I get a DVD with pictures on there that are nicely numbered and too big to place on a website (2 to 3 Mb per picture, about 700 of them). The size can be adapted by installing the nautilus resize option, select all and enter the new size.

To make it easier for the people to see the pictures, they are split into day an hour. to do this, is adapted a script so i got the following

#!/bin/sh

# Goes through all jpeg files in current directory, grabs date from each
# and add the date and time in front
# 
for fil in *.JPG  # Also try *jpg
do
    datepath="$(identify -verbose "$fil" | grep DateTimeOri | awk '{print $2, $3}' )"
  

  mv  "$fil" ./"$datepath $fil"
done

posted on Monday, October 11, 2010 9:49 PM

Feedback

# re: sorting pictures from a Theme party by date and time. 7/25/2011 3:19 PM 硬盘恢复

thanks

Post Comment

Title  
Name  
Url
Comment   

ATTENTION: the code you need to copy is CaSe SeNsItIvE and is required to prevent spam.
Enter the code you see: