Skip to content

Instantly share code, notes, and snippets.

@dmpop
Created May 4, 2014 10:03
Show Gist options
  • Save dmpop/8e0f9b55ed3e2ac741ed to your computer and use it in GitHub Desktop.
Save dmpop/8e0f9b55ed3e2ac741ed to your computer and use it in GitHub Desktop.
The exifwrite Bash shell script writes specified make, model, aperture, exposure time shutter speed, and ISO values to a target photo.
#!/bin/bash
#DESCRIPTION
# The exifwrite Bash shell script writes specified make, model, aperture, exposure time shutter speed, and ISO values to a target photo.
# DEPENDENCIES
# ExifTool
# To install the required package on Debian and Ubuntu, run the following command as root:
# apt-get install libimage-exiftool-perl
# USAGE
# ./exifwrite.sh [Make] [Model] [FNumber] [ExposureTime] [ISO] [Filename]
# Example:
# ./exifwrite.sh 'Nippon Kogaku K.K.' 'Nikon EM' 11 1/125 400 foo.jpg
exiftool -make="$1" -model="$2" -fnumber=$3 -exposuretime=$4 -iso=$5 $6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment