How to Vectorize Blueprints and Technical Drawings
8 min read
A technical drawing is full of lines that are supposed to be perfectly straight and circles that are supposed to be perfectly round. A scan of one is full of lines that are nearly straight and circles that are nearly round, because the paper was not flat, the scanner sampled on its own grid, and the original may have been drawn by hand in 1974.
The job of vectorizing it is fidelity to intent rather than to the scan. That means most of the work happens before the conversion, in getting the raster to say what the drawing meant.
De-skew first, and be fussy about it
A drawing scanned one degree off vertical traces one degree off vertical, and afterwards there is no single rotation that fixes it — the error is distributed across hundreds of independent coordinates and every horizontal line in the file is now slightly diagonal.
Rotate the raster until a known-horizontal feature — a title block edge, a datum line — is exactly horizontal. Most scanning software has an auto-deskew that gets within a fraction of a degree; check it against a long line rather than trusting it, because auto-deskew keys off the page edge, and the page edge is not always square to the drawing.
Threshold hard; a technical drawing has no grey in it
Blueprints and line drawings are binary by intent: there is line, and there is background. Any grey in the scan is an artefact — paper tone, foxing, the blue of an actual blueprint, the shadow of a fold — and every bit of it is something the tracer has to decide about.
Threshold the image to pure black and white before converting. Choose the threshold by looking at the faintest line you actually need: if a dimension line disappears, the threshold is too aggressive; if the paper starts speckling, it is too generous. Getting this right is worth more than any setting in the converter.
Expect outlines, and know when that matters
The engine traces the boundary of dark regions, so a drawn line comes back as a long thin closed shape following both of its sides, not as a single stroke down its middle. For viewing, printing, archiving and marking up, that is fine and often preferable — the line has real width, exactly as drawn.
For re-entering the geometry into CAD, it usually is not what you want: a CAD line is a centreline with a lineweight property, not a filled sliver. The route there is centreline tracing, which Inkscape does from a cleaned raster, followed by DXF export. It is more work, and it is the right work if the drawing is going back into a model.
Text will not come back as text
Dimension figures, part numbers and notes trace as shapes that look like letters. They print correctly and they are dimensionally accurate, but they are not searchable, not editable as text, and not selectable.
If the drawing needs to be searchable, run OCR on the raster separately and keep the recognised text as its own layer over the vector line work. Running OCR on the drawing before converting also has a side benefit: it tells you which annotations are legible enough to survive, which is useful to know before anyone relies on them.
Hatching and fills are the expensive part
Section hatching — the diagonal lines filling a cut face — is dozens of parallel strokes, each of which traces as its own long thin shape. A drawing with several hatched sections can produce a file an order of magnitude larger than one without, and the hatch carries almost no information: it means 'this is a cut face', which one region and one fill pattern would say just as well.
If the file is going to be edited rather than archived, consider erasing the hatching from the raster before converting and replacing it with a proper fill pattern afterwards.
Step by step
- 01
Scan at 300–600 dpi, flat
Fine dimension lines need the resolution. A flatbed avoids the perspective distortion a photograph brings.
- 02
De-skew against a known-horizontal feature
Rotate the raster until a title block edge or datum line is exactly horizontal. Afterwards the error cannot be removed cleanly.
- 03
Threshold to pure black and white
Choose the threshold by watching the faintest line you need. A technical drawing has no legitimate grey in it.
- 04
Convert to SVG
Upload the cleaned raster and download the result.
- 05
Add text and dimensions separately if they must be live
Traced annotations are shapes, not text. Run OCR on the raster and overlay the recognised text as its own layer.
Common problems
- Horizontal lines are slightly diagonal
- The scan was skewed. This has to be fixed in the raster before converting — afterwards the error lives in every coordinate independently.
- Fine dimension lines disappeared
- Either the scan resolution was too low for them to survive as more than a single pixel, or the threshold was too aggressive. Rescan at 600 dpi and threshold more gently.
- The file is enormous and slow to open
- Section hatching, almost always. Each hatch stroke is its own shape. Erase the hatching from the raster and replace it with a fill pattern in your editor.
- Text is not selectable or searchable
- Expected — traced letterforms are shapes. Run OCR on the original raster and keep the text as a separate layer over the line work.
Frequently asked questions
- Can I get a DXF for CAD?
- Not directly — the output is SVG. Inkscape exports DXF from an SVG in one step, which is the usual route. Note that a traced line is an outline rather than a centreline, so for re-entering geometry into a model you will want centreline tracing rather than this.
- What scan resolution do technical drawings need?
- 300 dpi is a floor and 600 dpi is comfortable. The constraint is the finest line on the sheet: it needs to be at least two or three pixels wide in the scan, or the tracer has nothing to find.
- Will dimensions and annotations stay editable?
- No. They convert into shapes that look like the original characters — accurate to print, but not text. If searchability matters, OCR the raster separately and overlay the result.
- Can this replace redrawing a legacy drawing in CAD?
- For archiving, printing and markup, comfortably. For a drawing that is going to be modified as a parametric model, no — that needs the geometry re-entered with real constraints, and a trace gives you outlines rather than constrained geometry.
Related guides
- How to Vectorize for Laser Cutting and CNC — Produce cut and engrave paths a laser can follow: single contours, no doubled lines, no hidden gaps.
- How to Vectorize a Map — Turn a raster map into editable, layerable line work for wayfinding, print and large format.
- How to Vectorize an Icon — Turn a pixel icon into a crisp, single-weight vector that scales from a 16px favicon to an app tile.