Set the opacity of an image/colour

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

Post by anthony »

Fisrt just changing the specific color WILL NOT WORK!

This will not take into account that the image contains anti-aliased pixels
that is various shades of grey along the edges of the text to make it look smoother without staircase 'jaggies'.

A black and white image like this should be thought of as a mask for
other images, weither they are transparent, a solid color, a tile, or a photo.

To use it in this way see Channels and Masks, in IM examples
Using Masks with Images http://www.cit.gu.edu.au/~anthony/graph ... els/#masks

This show the three basic ways masks are used to pick foreground and background colros from different sources (images).
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply