Image Feathering

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
johnford

Image Feathering

Post by johnford »

Hi All,

Does anyone know how I can feather the edges of an image?

Regards,

John.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Image Feathering

Post by Bonzo »

Depending what you want to do I remember Anthony said about using a gradiant to blend two pictures along one edge.

This is a link to a masking method I tried out - http://www.rubblewebs.co.uk/imagemagick ... r_soft.jpg
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Image Feathering

Post by anthony »

Or is it you want to make the edges of an image slightly transparent, or overlaying a masked image into another image?

Feathering in this case is usually done as part of the cutting process and not as a later step.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
johnford

Re: Image Feathering

Post by johnford »

Hi,

Im trying to feather white all around an image.

Is this possible to do without using another image?

John.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Image Feathering

Post by anthony »

Pardon, feather all white?

You mean you have a image that is sitting on a white background, and you want to remove that background while preserving the anti-aliasing involved.

This is a real problem for which no ideal solution is currently available. That is not to say a solution could not be found, just not a simple solution.

What I do have has been placed online at
http://imagemagick.org/Usage/channels/#mask_creation

One other solution by Dr. Rick Mabry,
http://www.lsus.edu/sc/math/rmabry/imag ... tireplace/
This basically is a gradient to gradient color replacement technique.
Such a technique with masking and overlaying will correctly re-create the right anti-aliased edging of a image. Or as you incorrectly put it 'feathering'.

Fortunately this technique is NOT available in IM, as basically we don't have enough programmers willing to work on the software core. :(

However if you like to publish a link to an example image I'll see what I can do about generating a example using IM techniques.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply