Select a custom area

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?".
Locked
User avatar
magick
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

To select a custom region as you describe you need a clip mask. The area you want to apply effects to should be opaque and the remaining area transparent. Use the -clip option to apply the clip mask followed by your effect.

User avatar
magick
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

The convert command accepts the -clip option. See http://www.cit.gu.edu.au/~anthony/graphics/imagick6 for additional help.

Locked