- Gem which detects the color of pages in a PDF
- If a page has a certain amount of color it's considered a color page
- Otherwise it's considered black and white
- PDFs and images can be analyzed
- Helpful for printing applications, where number of color/B&W pages needs to be known
- Requires imagemagick and ghostscript programs
Add this line to your application's Gemfile:
gem 'whatcolor'And then execute:
$ bundle
Or install it yourself as:
$ gem install whatcolor
TODO: Write usage instructions here
- Fork it ( https://github.com/[my-github-username]/whatcolor/fork )
- 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 a new Pull Request