Convert pixel based images to vector graphics files
Jpeg, Gif, Psd, …, Png
These are all pixel based raster graphics formats. If you scale an image like this you get “pixelation”. The images start to appear blocky with any diagonal lines becoming more staircase-like as you grow from the original size.
Vector Graphics
ImageMagick falls short here. You can convert between the different raster formats, and you can convert a vector file to a bitmap type, but it doesn’t convert pixels to vectors.
|
1 2 3 |
Dali@vm1 ~$ convert fedora-logo-sprite.jpg fedora-logo-sprite.svg convert: no image vector graphics; unable to generate SVG `fedora-logo-sprite.svg' @ svg.c/WriteSVGImage/3348. |
Inkscape to the rescue!
If you’re on linux, just install inkscape and you’re good to go. “yum install inkscape”, “apt-get install inkscape”, for rpm/fedora based or debian/ubuntu based distributions or use your favorite graphical package install tool.
1. Start inkscape and import your jpeg under File -> Import
2. Press Ctrl-Shift-D to open the document properties page.
3. Press the Shrink to fit selection button.
4. File -> Save As and pick your output filename. The default extension is .svg
Online tools
If you don’t want to bother with installing Inkscape, try Vector Magic online.
Easily Convert Bitmap Images To Clean Vector Art
http://vectormagic.com/home
Just upload an image and it will convert it. You get 2 conversions for free by verifying an email address. Converted files can be saved as pdf or svg.