Borders around arbitrary images

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
andy82

Borders around arbitrary images

Post by andy82 »

Hi,

can ImageMagick create borders around arbitrarily shaped images? AFAICS, the BorderImage() function always creates a rectangular border around the image. What I'd like to have instead is a border around arbitrarily shaped images (the shape of the image being defined by the alpha channel in the PNG image). For example, if the image is circular, the border should be circular, too. Is something like this possible with ImageMagick?

Thanks,

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

Re: Borders around arbitrary images

Post by Bonzo »

Check this post: viewtopic.php?f=1&t=16399
andy82

Re: Borders around arbitrary images

Post by andy82 »

Thanks, exactly what I was looking for!
Post Reply