to convert jpg to svg we can use autotrace or potrace.
autotrace:
sudo apt-get install autotrace
use (convert /tmp/mba.jpg to svg):
autotrace /tmp/mba.jpg -input-format jpg -output-format svg -output-file /tmp/mba.svg
see delineate gui application which use autotrace or potrace