Page 1 of 1

-separete -combine error

Posted: 2010-02-15T14:46:00-07:00
by anakein
I put this:
convert img.jpg -colorspace CMYK -channel C -separate imgx_C.gif
convert img.jpg -colorspace CMYK -channel Y -separate imgx_Y.gif
convert img.jpg -colorspace CMYK -channel M -separate imgx_M.gif
convert img.jpg -colorspace CMYK -channel K -separate imgx_K.gif

I have one error, K channel is mirror image from original image, I solved with : convert img.jpg -colorspace CMYK -flip -rotate 180 -channel K -separate imgx_K.gif

but....

if I want combine image again with:
convert imgx_C.gif imgx_Y.gif imgx_M.gif imgx_K2.gif -channel cmyk -combine final.gif

I have wrong image with strange color.
Why?
Can anynody help me?

Re: -separete -combine error

Posted: 2010-02-15T16:12:34-07:00
by fmw42
try

convert imgx_C.gif imgx_Y.gif imgx_M.gif imgx_K2.gif -set channel cmyk -combine final_cmyk.jpg

see http://www.imagemagick.org/Usage/channe ... bine_other

Note that this works fine for me with no mirror on IM 6.5.9-5 Q16. Perhaps you need to upgrade your IM.

convert logo: -colorspace CMYK -channel K -separate logo2_K.gif

Also the convert to cmyk, you don't have to separate channels, but gif does not supports cmyk (4 channels), but jpg does.

convert logo: -colorspace CMYK logo2_cmyk.jpg