Page 1 of 1

Bottom Edge Fade to Transparent

Posted: 2010-07-21T12:33:44-07:00
by stevelaw
Hi,

I need to fade out the bottom edge of an image by increasing the transparency as it's approaching the edge. How would I go about doing this?

Thanks,
Steve

Re: Bottom Edge Fade to Transparent

Posted: 2010-07-21T13:31:08-07:00
by fmw42
dim=`convert image -format "%wx%h" info:`
convert image -size $dim gradient: -compose copy_opacity -composite result

You have to create a gradient image for the transparency and insert it into the alpha channel of the image.

see http://www.imagemagick.org/Usage/compose/#copyopacity

Re: Bottom Edge Fade to Transparent

Posted: 2010-07-21T19:38:12-07:00
by anthony
See IM Exmaples, Overlapping photos
http://www.imagemagick.org/Usage/photos/#overlap

Fixed the above link! _sorry 'bout that chief, missed it by that much!

Re: Bottom Edge Fade to Transparent

Posted: 2010-07-21T22:15:17-07:00
by jpiquemal