Blur Edges.

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
dognose
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

Blur Edges.

Post by dognose »

I'm working on creating this effect:

http://ebin.wordpress.com/2007/03/21/ho ... photoshop/

I'm stuck on the part where it creates depth of field by blurring around the edges of the picture.

Any ideas on how to do this?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Blur Edges.

Post by anthony »

Create a clone of the original image, blur it. add a alpha channel using "-matte" now clone it again and create a -vigenation with a transparent background, and compose it with the blured image using 'DstOut' so you get a blurry image with a transparent center. Overlay that on the original image.

When you have the command worked out, let me know it I can add it to IM examples, as payment :-)

Alternative, if you have the latest IM use the newly fixed 3 image composite masking to merge the images together.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply