# How to soften edges with code?

**URL:** <https://forum.kirupa.com/t/how-to-soften-edges-with-code/251172>\
**Category:** Uncategorized\
**Created:** [February 5, 2008, 10:46pm UTC](https://forum.kirupa.com/t/how-to-soften-edges-with-code/251172 "2008-02-05T22:46:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bilderbach](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@bilderbach](https://forum.kirupa.com/u/bilderbach)\
**Post date:** [February 5, 2008, 10:46pm UTC](https://forum.kirupa.com/t/how-to-soften-edges-with-code/251172/1 "2008-02-05T22:46:48Z")

</div>

here is a jpg showing my problem:  
[http://rakbiz.com/CityWithLogo.JPG](http://rakbiz.com/CityWithLogo.JPG)

The city is a photo and in the lower right corner there is a logo placed over it.

the logo needs a black background to look right (ie:the back square around it).

is there some way to use a mask or something to soften the black square frame of the logo tpo blend into the picture programatically, I don’t want to have to change the photo everytime it changes to blend to the black.

Thanks for your help!

GBY,  
-R
