How do I change my command to only use the Blue channel?

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
User avatar
Posts: 8871
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony » 2006-10-22T18:40:16-07:00

A better method of adding extra masking in Alpha Compositin is to use the correct compose method.
As mask already has alpha, use it.

Code: Select all

  composite  Mask.rgb  Alpha.rgb -compose Dst_In  alpha_masked.rgb
the above finds that parts of Alpha that falls within the non-transparent areas of the overlay mask image. if you want the reverse use 'Dst_Out' instead.
see IM Examples, Alpha Composition for more details. ... ose/#dstin

You do not need to extract and mathematically merge the masks.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages

Post Reply