JPG & Photo to CAD DXF Converter for Sketches and Floor Plans
Eliminate uneven desk lighting and JPEG compression artifacts from smartphone photos of hand-drawn parts, gaskets, and floor plans—or drop annotated architectural SVGs to preserve room labels as native CAD MTEXT.
| Export | Color & ACI | Layer / DXF ID | Paths | Length (mm) | Delete | |
|---|---|---|---|---|---|---|
ACI 7 | WALLSWALLS | 5 | 20600.0 | |||
ACI 94 | COURTYARD_DECKCOURTYARD_DECK | 2 | 6465.5 | |||
ACI 30 | FIXTURESFIXTURES | 3 | 7427.0 | |||
| MTEXT | ACI 3 | Editable CAD text annotations (TEXT) | 7 | Native text |

Turning Smartphone JPG Photos & Floor Plans into Clean DXF
1. Local Illumination & JPEG Artifact Flattening
Integral-image background division neutralizes desk lamp shadows and 8x8 JPEG macroblock ringing across white paper.
2. Speckle Despeckling & Wall Line Extraction
Raise Minimum Island Area to discard paper grain speckles while retaining structural walls, doors, and mechanical contours.
3. Architectural Scale Calibration & MTEXT Export
Scale full room widths (e.g., 4800 mm) in one step; when converting vector floor plans, room dimensions export as editable MTEXT.
Photo & Floor Plan JPG to DXF Processing Benchmarks
Recommended parameter ranges for photographed sketches, scanned blueprints, and CAD floor plans.
| Parameter | CADMorph specification | Fabrication impact |
|---|---|---|
| Smartphone Desk Photo (Uneven Shadow) | Normalize Shadows: ON · Threshold: 165–190 | Prevents dark corner gradients from flooding half the DXF drawing with solid black polygons. |
| Compressed JPEG Scan (8x8 Ringing) | Minimum Island Area: 20–45 px² · Simplify: 1.25 px | Strips mosquito noise around dark ink lines before generating LWPOLYLINE vertices. |
| Architectural Floor Plan Scale | Target Width: 3000–12000 mm ($INSUNITS = 4) | Imports at 1:1 millimeter architectural scale in AutoCAD LT, BricsCAD, and SketchUp. |
| Annotated SVG Diagram Pass-Through | AcDbMText with rotation (code 50) & attachment (71) | Keeps room names and dimension callouts editable on the dedicated TEXT layer. |
Why engineers and makers use this workflow
Built for Real-World Phone Captures
Global thresholding fails whenever a phone casts a shadow over notebook paper. Integral-image normalization estimates local paper brightness in O(N) time so ink lines stay crisp edge-to-edge.
JPEG Compression Mosquito Filtering
Lossy JPG files scatter faint gray ringing blocks around sharp lines. Connected-component filtering removes isolated artifacts before CAD polyline compilation.
Full-Scale Architectural Millimeters
Type 4800 mm or 360 in directly into Target Width to generate full-scale building layouts ready for CAD dimensioning.
Frequently asked questions
Common questions on DXF R2000 compatibility, unit scaling, Cricut layer stacking, and local browser privacy.
How do I stop phone shadows from turning into giant black shapes in my jpg to dxf file?
Keep the Normalize Paper Shadows switch enabled. It divides each pixel's luminance by the local neighborhood paper brightness using an integral image, flattening lighting gradients before thresholding.
What is the best way to photograph a gasket or bracket for accurate DXF tracing?
Place the part on high-contrast matte white paper, hold the camera directly overhead at 90 degrees from 40–60 cm away using 2x optical zoom to minimize barrel lens distortion, and measure the part's real outer width in millimeters to enter into Target Width.
Can I convert floor plan text labels into editable AutoCAD text?
Raster JPG pixels do not contain text tags, so JPG labels trace as outlines; however, if your floor plan is exported from a diagramming or AI SVG tool with <text> elements (like our Courtyard Floor Plan preset), CADMorph compiles every label into native editable DXF MTEXT.
Standards and technical sources
- AutoCAD DXF Reference — MTEXT (AcDbMText) Entity Group Codes (Autodesk Help Documentation). Specifies MTEXT insertion codes (10/20), cap height (40), attachment point (71), and rotation angle (50).
- Adaptive Thresholding Using the Integral Image (Journal of Graphics Tools (Bradley & Roth)). Foundational O(N) integral-image local illumination compensation method for unevenly lit document captures.
Specification verified
Related vector and CAD studio tools
Convert PNG, JPG, and SVG images into scaled R2000 CAD DXF files with native MTEXT layers and non-cutout Cricut SVGs directly in your browser.
Convert transparent or opaque PNG drawings, brackets, and logos into dimension-scaled AutoCAD R2000 DXF files with OUTER_PROFILE and INNER_CUTOUTS layers.
Convert handwritten signatures and calligraphy photos into smooth transparent vector SVG and CAD DXF files automatically grouped by character.
Convert images into kerf-clean SVG and R2000 DXF files for LightBurn, xTool, and Glowforge with live micro-island speck removal and cut length preflight.
