Skip to content

dmpop/otto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Otto

       ~
    o{°_°}o
     /(.)~[*O]
      / \
================
Hello! I'm Otto.

Otto is a shell script for importing and organizing RAW and JPEG files.

Features

  • Transfer all files or RAW files only to the predefined destination directory.
  • Rename the transferred files using the YYYYMMDD-HHMMSS naming format.
  • For each photo, obtain camera model and lens model.
  • If enabled, fetch text notes for the dates corresponding to the dates of the photos.
  • Write the obtained camera model, lens model, and notes to the Comments field of each photo's EXIF metadata.
  • Write the predefined copyright notice to the Copyright field of each photo's EXIF metadata.
  • If keywords are specified, write them into each photo's EXIF metadata.
  • Geotag photos using the geographical coordinates of the specified city.
  • Geotag photos using exact geographical coordinates and altitude.
  • Merge multiple GPX tracks and geocorrelate photos using the resulting GPX file.
  • Group the transferred files into folders by date using the YYYY-MM-DD naming format.
  • Notify on job completion via ntfy.

Dependencies

Otto requires the following tools: dialog, getopt, bc, jq, cURL, ExifTool, Exiv2, Rsync, wget, GPSbabel

Installation and usage

The Linux Photography book provides detailed instructions on installing and using Otto. Get your copy at Google Play Store or Gumroad.

Example commands

./otto.sh -d <dir> -b
./otto.sh -d <dir> -g <location> -t "This is text" -k "keyword1 keyword2 keyword3"
./otto.sh -d <dir> -l "34.704364,135.501887"
./otto.sh -d <dir> -c <dir>
./otto.sh -d <dir> -g <location> -r NEF
./otto.sh -d <dir> -e <EXIF tag>
  • -d absolute path to the source directory
  • -g name of the city where the photos were taken
  • -c path to a directory containing one or several GPX files
  • -b perform backup only
  • -s Perform backup to an individual directory named after the current date
  • -r Transfer RAW files in the specified format only
  • -t Write the specified text into the Comment field of EXIF metadata
  • -k write specified keywords into EXIF metadata
  • -e Generate stats for the given EXIF tag

Problems?

Please report bugs and issues in the Issues section.

Contribute

If you've found a bug or have a suggestion for improvement, open an issue in the Issues section.

To add a new feature or fix issues yourself, follow the following steps.

  1. Fork the project's repository repository.
  2. Create a feature branch using the git checkout -b new-feature command.
  3. Add your new feature or fix bugs and run the git commit -am 'Add a new feature' command to commit changes.
  4. Push changes using the git push origin new-feature command.
  5. Submit a pull request.

Author

Dmitri Popov dmpop@cameracode.coffee

License

The GNU General Public License version 3

About

Otto is a clever little 🐒 that imports and organizes photos on your Linux machine or NAS

Topics

Resources

License

Stars

Watchers

Forks

Languages