ImaggaAutoTag

Ruby client for fetching tags for an image using the Imagga Auto Tagging API.

Installation

Add this line to your application's Gemfile:

gem 'imagga_auto_tag'

And then execute:

$ bundle

Or install it yourself as:

$ gem install imagga_auto_tag

Usage

client = ImaggaAutoTag::Client.new(your_imagga_api_key, your_imagga_api_secret)
results = client.fetch("http://static.ddmcdn.com/gif/landscape-photography-1.jpg")

results.tags
# => array of tags

results.scrub(30)
# => removes tags with a confidence of less than 30

results.tags[0].tap do |tag|
  tag.name # => tag name
  tag.confidence # => tag confidence as a float
end

results.to_csv
# => comma delimitted string of tag names
# => 'tag1,tag2,etc..'

Contributing

  1. Fork it ( https://github.com/lukechesser/imagga_auto_tag/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Version

0.2.0 : Change the API endpoint and the way authentication is done.