Originally Posted by nivlat
I'd like the extremities (about 20px) of an image to fade out gradually revealing the underneath background.
Going off of akrocatering, you could use css transitions, which are uber easy.
filter: alpha(opacity=100); /* IE */
-webkit-transition: opacity 2s;
-moz-transition: opacity 2s;
-o-transition: opacity 2s;
transition: opacity 2s;
filter: alpha(opacity=60); /* IE */
<img src="url.jpg" class="fade-out" />