Most foam jobs start with a picture, not a CAD file. A shop wants its logo as a 3D sign, a wedding planner sends a sketch of initials, an event company forwards a photo of a mascot. A CNC hot wire cutter can't follow pixels; it needs vector paths, usually as a DXF file. This guide shows how to convert an image to DXF so it cuts cleanly in foam.
Raster vs vector: why a picture can't be cut directly
A photo or logo image is a raster: a grid of coloured pixels. A DXF is a vector file: lines, arcs and curves with exact coordinates. Converting means tracing the edges of the image into vector paths. The cleaner the image, the cleaner the trace.
Step 1: Start with the right image
- High contrast: a dark shape on a light background (or the reverse) traces best.
- Sharp edges: ask the client for the original logo file rather than a screenshot or a photo of a printed sign.
- No gradients or shadows: they create false edges. Flatten the image to two colours if you can.
- Enough resolution: small, blurry images give jagged, stepped outlines.
Step 2: Trace the image into vector paths
Load the image into a tracing tool and adjust the threshold until the shape is solid and the background disappears. In ChandramaCAD, Photo Trace does this and puts the traced outline straight onto the design canvas, ready for the next steps.
Step 3: Clean up the paths
- Delete specks: tiny islands left by dust or noise in the image.
- Simplify: remove unnecessary points so curves are smooth and the machine doesn't stutter.
- Close every shape: join gaps so each outline is a single closed loop. ChandramaCAD's Join Segments helps here.
- Check thin parts: very thin strokes and sharp points may melt away in foam. Thicken them or simplify the design.
Step 4: Scale to the real size
A traced image has no real-world size. Set the finished width or height in millimetres before exporting, and check that small details are still large enough to survive the cut.
Step 5: Prepare letters and holes for the hot wire
This is where foam cutting differs from laser or plasma. The wire can't lift off the foam, so:
- Letters with holes (O, A, B, D, P, R…) need a thin vertical entry slot so the wire can reach the inside.
- Separate letters or parts need linking into one continuous route, or cutting one by one.
- Kerf compensation offsets the path for the foam the wire melts, so letters come out to size.
ChandramaCAD has Vertical Entry for Holes, Kerf Compensation and a Cut Path Validator built in for exactly this.
Tip: cutting many letters from one block? Use ChandramaCAD's Nesting Optimizer to fit them onto the sheet with less waste.
Step 6: Export the DXF, or go straight to G-code
Export a DXF in millimetres if you'll use it in another program. If you're cutting on a hot wire machine, send it to ChandramaGCODE, preview the toolpath and export G-code. Our DXF to G-code guide covers that part in detail.
Frequently Asked Questions
What kind of image converts best to DXF?
A high-contrast image with sharp edges and a plain background: a dark logo on white, a bold sketch in black marker, or a stencil. Blurry photos, gradients and shadows produce ragged, noisy outlines.
Why do traced letters need extra work before hot wire cutting?
A hot wire can't lift off the foam, so letters with holes such as O, A and B need a thin entry slot to reach the inside, and separate letters must be linked or cut one at a time. A traced outline also needs kerf compensation so the finished letters come out to size.
Can ChandramaCAD trace an image to DXF?
Yes. ChandramaCAD's Photo Trace turns a logo, sketch or stencil image into vector cut paths that you can clean up and export as DXF, or send on to ChandramaGCODE for G-code.