quadule/colorscore — Issue #1: Issue with older version of ImageMagick
Author: diegorv
Created: 2012-02-11 12:07:34+00:00
State: open

Hello, again!

First, nice job for your gem! :D

I working in a project wiht colorscore, in my machine this work really fine, but i found a big problem with heroku...

My ImageMagick version: ImageMagick 6.6.9-4 2011-05-06 Q16
Heroku ImageMagick version: ImageMagick 6.5.7-8 2010-12-02 Q16

I`m using Histogram to get color scores and this work cool, but in Heroku this doesnt work.... Probably something wrong in:

def initialize(image_path, colors=16, depth=8)
output = `convert #{image_path} -resize 400x400 -format %c -dither None -quantize LAB -colors #{colors} -depth #{depth} histogram:info:-`
@lines = output.lines.sort.reverse.map(&:strip).reject(&:empty?)
end

I need help :/