Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error extracting RGB values from TIF-File with ImageMagick 6.7.7-10 2015-01-19 Q16 #23

Open
fbrix opened this issue Jan 21, 2015 · 0 comments

Comments

@fbrix
Copy link

fbrix commented Jan 21, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant