Soft edges

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
ggking7
Posts: 21
Joined: 2010-11-15T13:19:04-07:00
Authentication code: 8675308

Soft edges

Post by ggking7 »

Can anyone show me how to use soft edges with PerlMagick?

http://www.imagemagick.org/Usage/thumbnails/#soft_edges

I'm looking for something along the lines of this:

http://www.imagemagick.org/Usage/thumbn ... t_edge.png

I don't want to use true transparency because I'll be saving in JPG format.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Soft edges

Post by fmw42 »

create it with transparency and then flatten the result against an appropriate background color so that you get the effect you desire in a JPG result.

... -background somecolor -flatten result.jpg

I don't know PerlMagick so cannot help with the commands.
ggking7
Posts: 21
Joined: 2010-11-15T13:19:04-07:00
Authentication code: 8675308

Re: Soft edges

Post by ggking7 »

Thanks fmw42. Can any PerlMagick experts out there point me in the right direction?
Post Reply