Photo etc

Number of shots taken by Nikon D80 camera

The Nikon D80 camera contains a EXIF tag value that counts the number shots taken Tag (hex) Tag (dec) IFD Key Type Tag description 0x00a7 167 Makernote Exif.Nikon3.ShutterCount Long Number of shots taken by camera This can be extracted by running the following command exiv2 -pt picturename.JPG … Exif.Nikon3.ShutterCount Long 1 5263 This example shows […]

Read More
Photo etc

Strip EXIF tags from JPG files

Sometimes it’s a good idea to remove the hidden data a JPG file contains, like when you publish picures on the Internet. An easy way to remove all EXIF-tags from your JPG files is to run the command using jhead jhead -purejpg *.jpg

Read More
Linux

A EXIF dater script

The script below will take a filename eg: DSCN0001.JPG, extract the “Image Created” metadata and rename the original file to something like 2006-03-23_DSCN00001.JPG and it will do it automatically for you. #! /bin/shfunction usage() {if [ $# -ne 1 ]; then    echo “ExifDater – version 0.1 – March 23 2006”    echo “El-Lotso ” […]

Read More
Scripting

Rotate images depending on the EXIF Orientation Tag

Automatic rotation of JPG images (inclusive EXIF thumbnail) can be performed by using jhead.exe and jpegtran.exe in Windows. jhead -ft -autorot *.JPG All JPG-files in that folder will be rotated and file time (time and date of exposure) will be set according to the EXIF info.

Read More