black channel in CMYK

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ArtoI

black channel in CMYK

Post by ArtoI »

Hello,

I try to convert rgb.png files to cmyk.tiff. (convert -colorspace CMYK rbg.png cmyk.tiff). The problem is that black channel is zero and all black pixels are mixture of cyan, magenta and yellow. How can I make CMYK files, where black pixels are only in the K-channel and all other colors are zero at these points.

Regards,
Arto
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia
Contact:

Re: black channel in CMYK

Post by anthony »

What version of IM are you using?

can you give a link to an example image (small example).
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
ArtoI

Re: black channel in CMYK

Post by ArtoI »

anthony wrote:What version of IM are you using?
Examples are made by the latest version 6.3.5-Q8 (Windows).
anthony wrote:can you give a link to an example image (small example).
Small example of the original .png can be found from:

http://www.keskiespoo.net/~arinkala/im/rgb.png

at the same directory cmyk.tif is made by command

convert -colorspace CMYK rgb.png cmyk.tif

after that color channels are separated by both images.

convert rgb.png -colorspace CMYK -separate rgb_sep_%d.tif
convert cmyk.tif -colorspace CMYK -separate cmyk_sep_%d.tif

The files separated from rgb.png seems to be fine, but from cmyk.tif K-channel is zero.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia
Contact:

Re: black channel in CMYK

Post by anthony »

Okay so reading in a CMYK version of TIFF then applying -colorspace CMYK
stuffs up the image.

I would report exactly that in the bugs section.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
ArtoI

Re: black channel in CMYK

Post by ArtoI »

The error might appear already in the conversion from .png. So, that the colorspace in the .tif file is CMY instead of CMYK.
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests