Giter Site home page Giter Site logo

metadata-to-sqlite's Introduction

Metadata-to-Sqlite

Creates a sqlite database using metadata extracted from photos using exiftool.

Usage

  1. Start with editing the tags.json file. This contains exiftool tag groups and tag names followed by the sqlite column names. Add or subtract tags as needed. The exiftool command and sqlite column names are generated based on this file.
  2. Either load a directory of photos (which will be index recursively) or load a pre-existing exiftool produced json file. The Create Database button should be able to understand your choice and either create json file or use the existing json file to create the sqlite database.

Enjoy!

To Fix..

  • State and Country names not being passed to db, but appear in the metadata.json file. Could be a hyphen issue.
  • Check to make sure all the Region tags are in db.

Data Clean up

To make sure the database is as clean as possible, use these exiftools commands to sanitize the data:

  • Clear region fields if no region rectangle is in the photo metadata: exiftool -if 'not $RegionRectangle' -RegionPersonDisplayName= -RegionType= -RegionName= -ext jpg -ext png -ext tiff -overwrite_original dir/
  • Remove leftover 'People' tag from RegionPersonDisplayName exiftool -if '$RegionPersonDisplayName eq "People"' -RegionPersonDisplayName= -ext jpg -ext png -ext tiff -overwrite_original dir/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.