# KVEC KVEC is a freeware program that allows you to convert raster graphics to vector graphics. You can freely use it. Before 2010 it was distributed as shareware. Please download the freeware version from the kvec web site ([https://www.kvec.de](https://www.kvec.de/)). It can be freely distributed and copied. KVEC is very exacting with respect to memory demands. Vectorizing is a critical process and often leads to a trade off between memory demands and performance. It is crucial for the performance that your computer has enough RAM. The selection of values for the switch parameters requires some caution. Noisy pictures (typical for scanned colour pictures) or pictures with a lot of very small details should be evaluated with larger 'grit values' and smaller 'quantize values'. This is a special inkscape frontend implementation. A lot of KVEC options are not supported, because we reduced the support for SVG format only. Please see the KVEC readme for full details. [](https://wiki.stadtfabrikanten.org/uploads/images/gallery/2025-05/LAdHT3RAeInR1cqu-grafik.png) ## Generate bezier curves The output will consist of bezier-curves instead of straight lines. This allows you to zoom the image without getting edges. For the output formats which don't support bezier curves, the bezier algorithm will be simulated and approximated by polylines. ## Centerlines
off | Turns centerline vectorization off (Default) |
mixed | The effect of this parameter depends on the value of the parameter -lwidth. (If used together with -centerline, the meaning of the parameter -lwidth is modified). Before vectorizing, all detected objects were checked for its maximal thickness. All objects with a maximal thickness less than -lwidth were treated as line objects; all other objects were vectorized in the normal way. The vectorization of line objects does not result in border lines around the objects. It produces single lines which are located along the centerlines of the objects. The final linewidth of this generated single lines will be adopted so that the area of the line object is about the same as the area of the original object. (this has no effect, if the output format cannot handle variable linewidths). |
lines | The same as 'centerline mixed' except that only line objects will be generated. All other objects will be discarded |
solid | Polygons are always closed (i.e. the last point of a vector is identical with the first point). The Polygons are filled with individual colors (DEFAULT). The sort parameter should not be 'min' in this case because the larger Polygons would cover and hide the smaller ones. |
line | Output consists of polylines with individual colors. The polylines are not closed. This is the preferable fill parameter if the outputfile is generated for a pen-plotter. The plotter pen will never plot more than one color one upon another. The layout will depend on the sort order specified with the 'sort' switch. With the switches 'reduce' and 'smooth' you can once more refine the layout of the output. |
contour | The same as '-fill solid', however the interiors of the polygons remain 'hollow'. Lines with different colour can cover each other. The layout will depend on the sort order specified with the 'sort' switch. |
optimize | KVEC will use internal optimized palette when color reducing has to be done (default) |
fixed | KVEC will use a standard color palette when color reducing has to be done. This often gives better vectorization results, especially if the raster image contains less than 16 colors. |
user (not supported!) | <n> R1,G1,B1, .... Rn,Gn,Bn: Here you can specify a user supplied color palette which contains <n> colors. The value <n> must be followed by <n> RGB triples. It is more practicable to use a parameter file than entering all RGB values on the commandline. The value for n may not exceed 256 colors. |
orthogonal | straight horizontal and vertical line-segments will be reduced. This is the default value. |
all | All straight lines will be reduced (diagonal lines too). Occasionally, small gaps may appear in the layout. |
off | lines will not be reduced. The only case in which you may want this setting is when you want the velocity of a plotter pen to slow down for long straight lines. |
nosort | Vectors will not be sorted. Contours with different colours may cover each other but the interior areas of each vector cannot be covered by those of another vector. |
max | This parameter depends on the filltype: For filltype 'solid' the Polygons are sorted by the size of the bounded area. For filltype line and color they are sorted by the length of the vectors (sortorder is from maximimum to minimum). This is the default value. |
min | The same as sort 'max' but sortorder is from minimum to maximum. This makes no sense together with '-fill solid'. |
local | The generated output order preserves the local topology, i.e. objects are drawn in the order in which they are nested. The sort order in a group of nested objects is from max to min. The sort order for groups is the same. Needs more computing time. If the sort order is local0, KVEC will try to generate subpolygons having transparency color. This may be usefull for vectorizing of text. The "-font" option will turn on the local sort order automatically. |
color | Polygons/polylines are sorted by color. |
Normal | No special mode. Default |
Only darkest and brightest color | The same as -vblack, except that only the dark areas will be processed. Thus, white areas inside of black areas might dissapear if the 'black' object is of type 'filled polygon'. |
All colors except brightest | The same as -vblack, except that only 'not white' areas will be processed. Thus, white areas inside of other areas might dissapear if the object is of type 'filled polygon'. |
Only colors with 'darkest' RGB-values | Only the colors with the 'darkest' RGB-values will be vectorized (picks the 'black' lines out of the picture). All other objects were treated as having one unique 'white color'. The regions consisting of this 'white' color will also be vectorized. Thus, white areas inside of black areas will be shown correctly. Note that a lower -quantize value results in the generation of more 'black' lines. If the quantize value is too high, the program will not catch all all dark regions. |
original | (Default) Winding of polygons will be unchanged, as detected from the source or from the vectorizer. |
reversed | Reverse the winding direction. This may be necessary for some types of input data. |
optimized | KVEC sets alternating winding directions for main- and subpolygons, depending on the nesting depth. |
none | Do not apply |
matching | This switch can be be used to pick out regions of the image which have the specified color. The color representation is RGB (Red Green Blue) with values from 0 up to 255. Only these regions that match this colour will be vectorized. Note: If a delta value > 0 is specified ('-delta' option) all colors which lie in the range (RGB +/- delta) will be vectorized. |
not\_matching | Only these regions that do not match this colour will be vectorized. Note: If a delta value > 0 is specified ('-delta' option) all colors which lie in the range (RGB +/- delta) will not be vectorized. |