ImageMagick::Identify
A wrapper around ImageMagick's identify command
Installation
Install ImageMagick on your server using your favourite package manager.
Add this line to your application's Gemfile:
gem 'imagemagick-identify'
And then execute:
$ bundle
Or install it yourself as:
$ gem install imagemagick-identify
Usage
Create an ImageMagick::Identify object using ImageMagick::Identify(<filename>), then call run on it. It will return you an ImageMagick::Result which contains the attreibutes of that image.
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