Lrcat.rb
ActiveRecord mappings for the Lightroom Catalog.
Installation
Add this line to your application's Gemfile:
gem 'lrcat'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lrcat
Usage
require 'lrcat'
# Open the catalog. (Please make a backup, this is experimental)
Lrcat::Catalog.open('Lightroom 5 Catalog.lrcat')
# Print the number of photos/camera model.
Lrcat::Catalog::CameraModel.all.each do |camera_model|
puts "#{ camera_model.value } : #{ camera_model.images.count }"
end
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request