<!-- 
.. title: Vectorize
.. slug: vectorize
.. date: 2011-01-02 17:29:26 UTC+01:00 
.. tags: presentations, web, 
.. link: 
.. description: 
.. type: text 
--> 

To create a vectorized sketch from a photograph for a brochure or for use as a logo:

1. Open the photograph in Gimp and create a sketch of it as described in the following. Please understand all values as suggestions only. Feel free to experiment. 😊 
  * Image/Scale image (150–300 dpi)
  * Ctrl-Shift-D (duplicates the layer)
  * Filters/Blur/Gaussian Blur (typically 2% of the dimension of the image)
  * Colors/Invert
  * set opacity to 50%
  * right-click on layer, Merge Down
  * Colors/Levels, set to 100–155
  * Colors/Desaturate
  * Colors/Levels, set max to 128, play with Gamma
  * Save. A script called [quick-sketch](http://registry.gimp.org/node/5921 "quick-sketch") is available, but the above gives you a higher degree of control.
2. To vectorize this sketch, open it in inkscape via the File/Import feature. Then:
  * resize page to selection via Ctrl-Shift-D (Document properties)
  * Shift-Alt-B (Trace Bitmap)
  * Mode: Grays, check stack scans
  * Options: suppress speckles 25, smooth corners 1, optimize paths 5.

Here's an example created by the above procedure:

![Berlin](../images/berlin.svg)

PS: If you don't see an image above, try another browser. Opera 11, IE 9 and all current Webkit incarnations (Chromium, Safari, Konqueror, Uzbl, Midori …) support svg as image format. Firefox will support it in the soon-to-be-released version 4.

