Posted: 2006-11-19T18:55:55-07:00
The +matte in this case ensures that the 'CopyOpacity' will deal with a grey scale image. In the grey.png image has a matte channel than it copys the matte channel rather than using the grey colors of the image. It is a historical quirk of the operator.
For more details see CopyOpacity Alpha Composition
http://www.cit.gu.edu.au/~anthony/graph ... opyopacity
A matte channel is always added if not already present to the destination image.
NOTE this command can make parts of the destination image that was transparent, opaque. This is usally not a good thing as the color of transparent areas are basically undefined, and usally (due to mathematical handling) is black. This often caused all sorts of problems in IM version 5 which were slowly resolved in the earlier versions of IM v6.
See the various transparency bugs of old versions which are docuimented in IM Examples, Bugs and Development
http://www.cit.gu.edu.au/~anthony/graph ... ick6/bugs/
The best solution to this is to only used CopyOpacity using two images that do not have any transparency to begin with, as such +matte sort of ensures that is the case.
For more details see CopyOpacity Alpha Composition
http://www.cit.gu.edu.au/~anthony/graph ... opyopacity
A matte channel is always added if not already present to the destination image.
NOTE this command can make parts of the destination image that was transparent, opaque. This is usally not a good thing as the color of transparent areas are basically undefined, and usally (due to mathematical handling) is black. This often caused all sorts of problems in IM version 5 which were slowly resolved in the earlier versions of IM v6.
See the various transparency bugs of old versions which are docuimented in IM Examples, Bugs and Development
http://www.cit.gu.edu.au/~anthony/graph ... ick6/bugs/
The best solution to this is to only used CopyOpacity using two images that do not have any transparency to begin with, as such +matte sort of ensures that is the case.