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?".
That suggests that you are using an older version of IM which does not support "-alpha extract".
Which version are you using?
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
### creat a maske
convert -size 100x100 xc:none -draw "circle 40,80 60,60" mask_shape.png
### use the mask on an image an create the result image
composite -compose Dst_Out -gravity center mask_shape.png icon.png -alpha Set result.png