Turn an image into a 3D-printable shape

Turn a picture of a leaf into a 3 mm thick shape you can print.

CADit can trace a flat picture and turn its outline into a solid shape you can print. Choose Image, then Trace, pick your picture, and set how wide and thick the shape should be. This guide uses a leaf silhouette and makes it 60 mm wide and 3 mm thick.

The imported leaf appears as a solid shape, with its image conversion controls in Parameters.

Download the example leaf image

Save this leaf PNG to your computer. It is a solid black leaf on a white background, with the stem joined to the leaf so the result comes out in one piece.

The original image is a solid black leaf with an attached stem on a white background.

When you try your own picture, pick a single bold shape in one dark color on a light background, without shading or loose dots. Every separate patch of color becomes a separate piece.

Trace the PNG outline

  1. Open the CADit editor on a computer with a mouse or trackpad. If you already have a design open, save it first, then choose New from the three-line menu at the top left.
  2. Choose Image at the bottom of the left panel, then Trace.
  3. Pick leaf.png.

CADit switches to a large 3D view with a Parameters panel, where you control how the picture becomes a shape.

Set model width and thickness

  1. Set Extrusion Height to 3 mm. This is how thick the leaf will be.
  2. Set Maximum Width to 60 mm. The leaf keeps its proportions, so it comes out about 96 mm from tip to stem.
  3. Choose UPDATE at the top of Parameters.

Parameters show Trace mode, Extrusion Height 3 mm, Maximum Width 60 mm, Despeckle Size 2, Threshold 0 and Invert off.

Drag the background of the 3D view to look at the leaf from an angle, and scroll to zoom. You should see a solid leaf with its stem attached and a 3 mm edge.

If the white background has become the shape instead of the leaf, check that Invert (for light-on-dark images) is off; turn it on only for a light shape on a dark background. For your own pictures, compare the 3D outline with the original before you download it.

Save the project and export STL

To explore the finished example, download leaf-from-png.cadit or leaf-from-svg.cadit, then open it with Open CADit File from the three-line menu.

  1. Open the three-line menu and choose Save CADit Project.
  2. Type leaf-from-image in File name and choose DOWNLOAD FILE.
  3. Choose CLOSE.
  4. Open the menu again and choose Export STL. CADit may name the download CADit-export.stl; rename it if you like.

Open the STL in your slicer, the program that prepares a model for your printer. It should be one piece measuring about 60 × 96 × 3 mm. Then slice and print it as you normally would. If your slicer prefers 3MF files, choose Export 3MF from the same menu instead.

The saved .cadit file lets you reopen the leaf and change its size or thickness. It keeps the traced outline rather than the original picture, so to trace a different image, start again from Image > Trace.

Use SVG sampling instead

If your artwork is an SVG (a drawing saved as outlines rather than pixels), CADit can read its outlines directly. Try it with the leaf SVG:

  1. With the traced leaf still open, go to Parameters and, under Image File, choose CHOOSE FILE and pick leaf.svg.
  2. Set Mode to Sample (SVG only).
  3. Check that Extrusion Height is 3 mm and Maximum Width is 60 mm, then choose UPDATE.

Sample works only with SVG files; for PNG and JPG pictures, leave Mode on Trace. The two leaf files give the same shape; the traced PNG outline differs only very slightly.

The SVG version uses Sample (SVG only), with the same width and thickness.

Compare SVG import with Image Extrude

The Image menu also has an SVG option. That one adds the SVG as shapes you can edit on the drawing canvas, not as a traced 3D shape with these Parameters, so use Trace for this guide.

Next, try tracing images.