Closed diegorv closed 12 years ago
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, this get wrong colors.... Probably something 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 :/
Looks like LAB color is broken in older versions of ImageMagick. YIQ colorspace seems to work just as well in my tests, so I'm using that now instead. The latest version should work correctly.
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, this get wrong colors.... Probably something in:
I need help :/