Đang Thực Hiện

SVG outline and offset of image

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.

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!

Kỹ năng: HTML5, Javascript

Xem thêm: svg offset, svg outline script, svg offset image, svg offset path, create svg outline image, offset path javascript, remove offset around svg, svg image offset, svg image outline, javascript svg offset, return path, offset path svg javascript, svg offset javascript, svg path outline javascript, svg path offset, svg outline, svg javascript html, outline, image remove, fill image, input distance html, html bitmap, variable html, image open, javascript outline

Về Bên Thuê:
( 3 nhận xét ) Malmö, Sweden

Mã Dự Án: #1076620

Đã trao cho:

BeautyOfCode

Hi, I'm BeautyOfCode. Thank you for inviting me. Please check PM.

$1000 USD trong 7 ngày
(14 Đánh Giá)
5.8

4 freelancer đang chào giá trung bình $859 cho công việc này

softsolpvt

please check pmb for our work and lets start your work ,Thanks

$850 USD trong 15 ngày
(0 Đánh Giá)
0.0
trist

Let's do it!

$834 USD trong 7 ngày
(0 Đánh Giá)
0.0
skarasiov

Ready to start in any moment.

$750 USD trong 10 ngày
(1 Đánh Giá)
0.0