Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert Image (JPG,BMP,GIF) to SVG

Anyone know a tool that actually works (I tried several, but none works), with support for color images. If some know how to implement this, or any component that makes (C#), I would be grateful.

Thanks for any help


The program below works, however, leaves all the files in black and white.

Total Vectorize

like image 710
Paulo Henrique Avatar asked Dec 10 '22 15:12

Paulo Henrique


2 Answers

Converting bitmap graphics to vector graphics (for example, PNG to SVG) is a definitively non-trivial task, with no straightforward solution. Doing it the other way round - vector to bitmap graphics - is of course a simple process of rendering, and that's how things are usually done if you want both formats.

At its core, such a conversion requires complex and error-prone algorithms that analyse patterns in images. More complicated images will simply be impossible to decompose into vector graphics. The technical explanation is based on the fact that the information entropy of bitmap representations is guaranteed to be higher than that of vector representations, which means there is always uncertainity in reversing the well-defined process of vector graphics rendering.

The best program widely available for your task is likely to be Vector Magic (shareware). If that doesn't do the job for you, it's not likely anything will, though of course you'll probably need a lot of tweaking for good results.

like image 196
Noldorin Avatar answered Dec 30 '22 05:12

Noldorin


This process is know as vectorization. It is process of converting bitmap image to vector image. There are many tools, including free, that can do this, for example http://inkscape.org/

But the result of such processing is far from perfection.

Hope this helps. Maybe I got your answer wrong, and you need to convert bitmap image to vector programmaticaly, or you're asking how to embed bitmap image into SVG image.

like image 37
STO Avatar answered Dec 30 '22 07:12

STO