tags:

views:

55

answers:

1

Can anyone help... how to convert Image to Vectors (SVG) through Javascript.......! Any help will be awesome....!

+3  A: 

What you're asking isn't really possible. I mean, you could try to do it, but I doubt the results would be particularly satisfying.

SVG to JPEG is a one-way conversion; converting a raster image to a vector image is non-trivial, see this question.

Williham Totland
Ok Williham....
Zain
+1 for non-trivial.
Spudley
That said, it is possible to port e.g potrace to javascript using HTML5 canvas. It will likely be a bit slow, and it will require a bit of porting work, but it's not impossible. Tracing raster images and producing nice vector graphic results is a hard problem OTOH.
Erik Dahlström
@Erik Dahlström: For some value of "possible".
Williham Totland