Hey community, not sure if this is the right place to post this. I'm basically new to imagemagick and image processing in general.
Here is my problem, I'm using imagemagick through a RUBY gem RMAGICK. I need to create bar code image from scratch using CMYK colorspace ( because I need it for printing )
I was able to create the image and set the color space to CMYK, even including the color profile file to it.
But when it comes to create the bars using draw and fill with "cmyk(0,0,0,0)", the colors are all wrong. I made some research and found that draw will only support sRGB for this purposes: http://www.multipole.org/discourse-serv ... 54&p=36074
So my question is, is there any other way to "draw" using CMYK? Or probably a workaround to create the bars with CMYK colorspace?
Here is a bit more of information on my problem:
http://stackoverflow.com/questions/2330 ... using-cmyk
Thanks in advance for any piece of help you could provide.
Draw using CMYK
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Draw using CMYK
Create your image and draw in sRGB colorspace and then convert it to CMYK using profiles from sRGB to CMYK. That is the only way I know how to do it. I think you should be able to specify cmyk colors (but am not 100% sure of that), but they will actually be converted to the corresponding sRGB colors during the drawing. So the resulting image will be an sRGB image. Thus you need to use profiles to convert from sRGB to CMYK.
If you have to draw on a CMYK image, then convert the CMYK image to sRGB, do your drawing, then convert back to CMYK. Use profiles rather than -colorspace for best results.
If you have to draw on a CMYK image, then convert the CMYK image to sRGB, do your drawing, then convert back to CMYK. Use profiles rather than -colorspace for best results.