Skip to content

Commit

Permalink
Improve color detection
Browse files Browse the repository at this point in the history
  • Loading branch information
josepjaume committed Apr 15, 2011
1 parent a02b335 commit 2e69756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/colorant/processer.rb
Expand Up @@ -17,7 +17,7 @@ def initialize(file, options = {})
end

def process!
raw_data = `convert #{file} -format %c -colors #{colors} -depth #{depth} histogram:info:- | sort -r -k 1`
raw_data = `convert #{file} -gravity Center -crop 80x60% +repage -format %c -colors #{colors} -depth #{depth} histogram:info:- | sort -r -k 1`
@data = Parser.parse(raw_data)
Reporter.report(@data, @reporter_options)
end
Expand Down

0 comments on commit 2e69756

Please sign in to comment.