Reducing CMY channels and keeping K channel

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
harwoodr

Reducing CMY channels and keeping K channel

Post by harwoodr »

Hey all,

I'm told for a specific barcode operation that I need to be able to spit out a black and white image where the black has no CMY channel components - how do I achieve this with PerlMagic?

I've tried using Fx to reduce the channels - but without success.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Reducing CMY channels and keeping K channel

Post by anthony »

Who told you, and what are you requirements. A black and white image is not specific to CMYK. There are lots of ways to convert an image to a two color black and white image.

You have greyed image threshold, dithered monocrome, two color quantization (dithered or un-dithered) or user supplied color reduction. Just to name a few.

Most of these are exampled in IM Examples, Quantization and Dithering, and can be translated to PerlMagick relativally easilly.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply