SVG outline and offset of image

IN PROGRESS
Bids
4
Avg Bid (USD)
$859
Project Budget (USD)
$750 - $1500

Project Description:
I need a function that will outline a bitmap and create a SVG offset path around it. White fill around the image should count the same as transparent and should be outlined as well (see attached image for more details).

function should look like this:
function(svg, offset, smoothing) { return offset_path; }

svg: Input SVG code
offset: offset distance in px from outer border of SVG
smoothing: some kind of variable that will define how much the script should smoothen out the offset path (simplify and remove points, we cant have a offset with too many points in the path)
offset_path: the returned offset path svg code

Prefered is that we do this in JavaScript but I'm open for all suggestions on how to solve this.

Additional Project Description:
05/27/2011 at 13:04 EDT
PLEASE NOTE:
Sorry guys but I just realized that I typed the wrong thing in the function description. Its not supposed to be SVG in the input, it's a bitmap as I wrote in the start of the description.

So, new description:

function(bitmap, offset, smoothing) { return offset_path; }

bitmap: Input bitmap, PNG or JPG
offset: offset distance in px from outer border of bitmap, white and transparent background should be removed. (like attached image)
smoothing: some kind of variable that will define how much the script should smoothen out the offset path (simplify and remove points, we cant have a offset with too many points in the path)
offset_path: the returned offset path svg code (will be used as clippingmask around the image in a SVG object later).


Sorry about the misstake!

Skills required:
HTML5, Javascript
Additional Files: outline.png
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


Hire BeautyOfCode
$ 1000
in 7 days
Hire skarasiov
$ 750
in 10 days
Hire softsolpvt
$ 850
in 15 days
Hire trist
$ 834
in 7 days