< Browse > Home / Linux / Blog article: Jhead Batch Photo Renaming

| RSS

Jhead Batch Photo Renaming

January 25th, 2011 | 1 Comment | Posted in Linux

Jhead is a CLI utility to rename large collections of photos with EXIF (Exchangeable image file format) metadata like date and time which saves you the effort to renaming them one by one.

To install Jhead:

sudo aptitude install jhead

To rename the photos to “year-month-date_hour-min-sec” format:

1. Go to the photo folder

chenhow@laptop:~$ cd Desktop/BBs/

2. Run Jhead utility with below parameter

chenhow@laptop:~/Desktop/BBs$ jhead -n%Y-%m-%d_%H-%M-%S *.jpg

3. Then your photos will be renaming and the format will look like this

Before rename

chenhow@chenhow-laptop:~/Desktop/BBs$ ls
Photo0594.jpg  Photo0598.jpg  Photo0600.jpg

After rename

chenhow@chenhow-laptop:~/Desktop/BBs$ jhead -n%Y-%m-%d_%H-%M-%S *.jpg
Photo0594.jpg –> 2009-10-04_05-57-56.jpg
Photo0598.jpg –> 2009-10-04_06-05-13.jpg
Photo0600.jpg –> 2009-10-04_06-11-16.jpg

For help, type jhead -h or visit http://www.sentex.net/~mwandel/jhead/.

Related Posts
  • No Related Posts
Leave a Reply 1962 views, 5 so far today |
Related Posts
  • No Related Posts
  • http://www.socialskateboarding.com/ Skateboards

    Jhead is a very
    useful utility. I’m using this tool to rename large collections of photo. It’s
    really good. Anyways thanks for making a good highlight about it.