Carlos Galdino
Last updated: 2020-06-29
Vector images are great for high-quality publication figures or presentations on big screens. In opposition, raster graphics are great for pixelated images, like photographs. Sometimes, it is useful to convert an image from a raster format (.png, .jpg, ...) to a vector format (.svg, .pdf, ...). There are many ways to do that and I'm gonna show you one simple way to that which works well for images with well defined lines and curves, e. g., graphs.
I have this dummy pdf article with a few vector and raster figures (we may identify the raster images by their pixelated appearance) that we are going to use in this example. Also, we are going to need a vector graphics editor. Here, I am using Inkscape.
This example is divided in two parts. The first part will show the step-by-step instructions for vectorizing solid curves and the second part will show you how to deal with scattered points.
shift+(mouse scroll)
to scroll sideways.Once you are done, it will look like the image below.
The final result will look something like this:
Warning
The second method does not preserve the original position of the data points.
If this was useful to you, send me an Email at galdino@ifi.unicamp.br. Also, suggestions and criticism are welcomed.
This work is licensed under a Creative Commons Attribution 4.0 International License.