-
Notifications
You must be signed in to change notification settings - Fork 102
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
Incorrect conversion from JPG CMYK => RGB (using Image Magick convert works) #4
Comments
Thanks for the details! This looks like an issue that has been affecting several people lately. We'll look into it as soon as we have a free moment, hopefully this weekend. |
It looks like the issue was caused by an ImageMagick function change in version 6.5.1 and forward. RMagick in source should be fixed to use the new function when available, and the change will be in the next release. If you can, please try to compile from source and see if the fix works for you. If not, please reopen. |
I cloned rmagick from github and followed the instructions on http://github.com/rmagick/rmagick/blob/master/README.rc but still got the same result as before. How can I confirm that I'm indeed running the rmagick built from source? Long_version reports (I had separately upgraded to the latest gem using sudo gem install rmagick, so I was already on 2.13.1): This is RMagick 2.13.1 ( |
If you're running RMagick from source, the version of RMagick should be 0.0.0 (since it's unreleased). You may need to remove the RMagick gem before doing an install from source. |
Fix worked, thanks! |
It would be nice to have an official release with this fix, any plans for that? |
Yes - a release with this fix would be greatly appreciated! :) |
This bug seems to be present again :( |
yes i can confirm that the bug is present again =/ |
This bug is still present in 2.13.1 Is there at least a known work around? |
here too. using 2.13.1 |
got it working like this: # source image must have a cmyk color profile. if not, you have to assign a standard profile.
# you get those icc profiles on the interwebs
unless image.color_profile
image.add_profile("#{Rails.root}/lib/USWebCoatedSWOP.icc")
end
# then you assing a rgb profile. this converts the image to rgb.
image.add_profile("#{Rails.root}/lib/sRGB.icc")
# you dont need the profiles anymore
image.strip! |
schneikai: solution not worked for me. Using RMagic 2.13.1 and sRGB v4 profile. |
When converting a JPG that is in the CMYK colorspace to the RGB colorspace using RMagick, the operation produces an image that looks like it has inverted colors (black turns to white). Using the Image Magick convert tool does not exhibit this problem. Sample image for which this happens together with the outputs are unfortunately not attached since github doesn't seem to support attachments for bugs. Email me for the files.
Version information and steps to reproduce listed below:
Platform: Ubuntu 9.10 (Karmic)
RMagick command sequence:
Image Magick convert command sequence:
The text was updated successfully, but these errors were encountered: