I had to downgrade my ImageMagick version to the ImageMagick 6.7.7-10 2015-01-19 Q16. Since I downgraded it, the RGB extraction stopped working for me. I don't know if it is a bug. Are you able to help me with that?
The Miro object looks like this:
#<Miro::DominantColors:0x007f84fe872ca8 @image_type=nil, @src_image_path="public/images/swatches/313/original/swatch-313-ha02-25-001.tif"> and I am calling to_rgb on it.
Thank you in advance. I am using MacOS Yosemite.
This is the result:
convert: profile 'icc': 'RGB ': RGB color space not permitted on grayscale PNG `/var/folders/8x/5cpkltc94j79q9vyt76pw9pw0000gn/T/downsampled20150121-1483-8xgvxs.png' @ error/png.c/MagickPNGErrorHandler/1728.
Cocaine::ExitStatusError: Command '/usr/local/bin/convert ''.../images/swatches/313/original/swatch-313-ha02-25-001.tif'[0]' -resize '150x150' -colors '4' -colorspace 'RGB' -quantize 'RGB' '/var/folders/8x/5cpkltc94j79q9vyt76pw9pw0000gn/T/downsampled20150121-1483-8xgvxs.png'' returned 1. Expected 0
Here is the command output:
from /.rvm/gems/ruby-2.0.0-p195@global/gems/cocaine-0.5.4/lib/cocaine/command_line.rb:96:in `run'
UPDATE:
I implemented a hotfix here:
https://github.com/fbrix/miro/commit/6b4fc08990d60c937fffd542751bf10a283babaf
I think there is a problem with the PNG conversion with the older ImageMagick version.
I had to downgrade my ImageMagick version to the
ImageMagick 6.7.7-10 2015-01-19 Q16. Since I downgraded it, the RGB extraction stopped working for me. I don't know if it is a bug. Are you able to help me with that?The Miro object looks like this:
#<Miro::DominantColors:0x007f84fe872ca8 @image_type=nil, @src_image_path="public/images/swatches/313/original/swatch-313-ha02-25-001.tif">and I am callingto_rgbon it.Thank you in advance. I am using MacOS Yosemite.
This is the result:
UPDATE:
I implemented a hotfix here:
https://github.com/fbrix/miro/commit/6b4fc08990d60c937fffd542751bf10a283babaf
I think there is a problem with the PNG conversion with the older ImageMagick version.