Skip to content

Utilities to read/write licensing info in the metadata for images/audio

License

Notifications You must be signed in to change notification settings

mseag/metadata-utils

Repository files navigation

Metadata Utils

Retrieves/updates XMP metadata from audio/image files relating to licensing. Uses exiftools

  • Creator - Name / Organization
  • License - Preferably to set to Creative Commons
  • Rights (copyright holder)

Parameters

Required - one of:

-f --files [list of files, separated by commas]

-p --projectPath [path to Fieldworks project]

Metadata-utils will then find all the audio/image files given and update tags according to optional parameters below

Optional

-t --tags <string of JSON Object of metadata tags to write>

Recommended example of JSON string:

{\"creator\": \"<Creator of the file>\", \"license\": \"https://creativecommons.org/licenses/by-nc-sa/4.0/\", \"rights\": \"(c) <year> <rights holder>\"}"

-j --json [path to JSON file containg tags to write]

Recommended example of JSON content:

{
  "creator": "<Creator of the file>"
  "license": "https://creativecommons.org/licenses/by-nc-sa/4.0/"
  "rights": "(c) <year> <Rights holder>"
}

If a parameter for metadata tags (--tags or --json) are specified, they'll be written to the file(s)/project. Use an empty string to overwrite an existing field.

If none of the optional parameters are given, the metadata tags are just read for the files.

Pre-requisite

Install the current LTS of nodejs.

About

Utilities to read/write licensing info in the metadata for images/audio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published