Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
rubylike wrapper for the Exempi XMP handling library
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
Gemfile
LICENSE
README.md
Rakefile
fasttrack.gemspec

README.md

Fasttrack

Fasttrack is a rubylike object-oriented interface around the Exempi C library. It provides an easy way to read, write and modify embedded XMP metadata from arbitrary files.

Installation

Add this line to your application's Gemfile:

gem 'fasttrack'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fasttrack

Usage

Opening a file:

file = Fasttrack::File.new 'path' # add the 'w' parameter if you want to write

Editing the file's XMP:

file.xmp.set :tiff, 'Make', 'Samsung'
# or, more prettily
file.xmp['tiff:Make'] = 'Samsung'

Iterate over the properties in a file:

props = file.xmp.map {|p| p[1]}

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

3-clause BSD, identical to the license used by Exempi and Adobe XMP Toolkit. For the license text, see LICENSE.

Something went wrong with that request. Please try again.