Skip to content

mgolub2/photodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhotoDB

Build and Publish Release

A simple rust program for managing raw images.

Features

  • Uses libraw to get the actual pixel content of each raw.
  • Pixel content is used as the hash of the image, so metadata changes to E.I the exif have no effect.
  • Organizes files into Year / Month / Camera model folders
  • Uses sqlite to store the hashes of imported files
  • Can verify those hashes have not changed

Usage

Simple photo database management tool. Pixel content based depduplication via xxhash and libraw

Usage: photodb [OPTIONS] <COMMAND>

Commands:
  import  Import files into the database
  verify  Verify the raw image file hashes
  help    Print this message or the help of the given subcommand(s)

Options:
      --import-path <IMPORT_PATH>  The database root to move files into [default: photodb]
  -m, --move-files                 Move the files to the database root
  -i, --insert                     Import the files into the database, checking for duplicates
  -d, --database <DATABASE>        The name of the database to use [default: .photodb/photo.db]
  -c, --create                     Create the database
  -h, --help                       Print help
  -V, --version                    Print version

Build and Install

git clone https://github.com/mgolub2/photodb.git
cd photodb
cargo build --release
mv target/release/photodb /usr/local/bin/photodb

About

A photo management tool in Rust (with libraw)

Topics

Resources

License

Stars

Watchers

Forks

Languages