Guides

Image to STL: turn a PNG or SVG into a 3D part

Turning an image into an STL is the first step of almost every custom order: a customer’s logo, a hand drawing, a child’s name. How you do it depends on the kind of image and on the part you want at the end, because a cutter, a stamp and a stencil use the same drawing in different ways. This guide covers which image format works best, how to prep the file, the minimum line width, the manual route with free software, the generator route, what to do with a photo and the mistakes that most often ruin a part.

What changes between an image and an STL

An image is a grid of pixels: it only has width, height and color. An STL is a 3D part, described by a mesh of triangles. To get from one to the other, someone has to decide three things: what the outline is, how tall each area will be and what job the part will do.

In a cutter, the outline becomes the cutting wall and the inner details become the stamp’s relief. In a stamp, the drawing becomes mirrored relief. In a stencil, the drawing becomes a cutout in a plate. That is why the same image can produce very different parts.

PNG, JPG or SVG?

All three work, but each one arrives with a different quality:

  • SVG: a vector drawing, with exact outlines at any size. It is the best starting point.
  • PNG: works well if the drawing is dark on a plain or transparent background and has good resolution.
  • JPG: usable, but compression blurs the edges. Use the highest resolution you have.
  • Other formats, like WEBP or HEIC: open them in an editor and save as PNG first.

Which images make good parts

What separates a good image from a bad one is not the format, it is the drawing. The ones that become the best parts have these traits:

  • A filled silhouette and a clear outline. These make the best cookie cutters.
  • Dark lines on a light background, with no shadows, shine or gradients.
  • Few tiny details. What looks great on paper can vanish on a 3 inch cookie.
  • Closed outlines on the areas that need to become a single piece.
  • Good resolution: aim for 1,000 pixels or more on the longest side.

How to prep the image

Any simple image editor handles these steps, including phone apps:

  1. Crop the empty space around the drawing.
  2. Raise the contrast until the background is white and the drawing is very dark.
  3. Erase shadows, stray text and watermarks.
  4. Make the drawing a single color, with no gradient.
  5. Thicken very thin lines and close any open outlines.
  6. Save as PNG, which doesn’t lose quality every time you save it.

Minimum line width

The printer draws every line with its nozzle, and the most common nozzle is 0.4 mm. A line thinner than that has no way to print. In practice, plan for at least 1 mm at the final size for cutter and stamp lines. In the generator, the editor highlights relief lines under 0.8 mm in yellow.

A little math helps you spot the problem before printing. On a cutter 8 cm (about 3.1 in) wide, 1% of the image width becomes 0.8 mm. On a 1,000 pixel image, that is 10 pixels. Anything thinner needs to be thickened, or the part needs to get bigger.

  • Text: letters at least 5 mm tall at the final size.
  • Gaps between lines: leave at least 1 mm, or they merge in the relief.
  • With Bananas Pro, the editor reinforces thin lines in one click and lets you compare with the original before downloading.

The manual route

You can do everything with free software. For a flat decoration, like a decorative plaque, this route is enough:

  1. If the image is a PNG or JPG, turn it into a vector in an editor like Inkscape, using Path > Trace Bitmap.
  2. Save the result as SVG.
  3. In Tinkercad, click Import, choose the SVG and set its size in millimeters.
  4. Set the part’s height and join it to a base if needed.
  5. Export as STL or 3MF and open it in your slicer.

Why cutters and stamps take more work

Raising the drawing works for a decoration, but not for a tool. A cutter needs a thin wall to cut, a wide flange for your hand and the right height for the dough. The stamp has to fit inside the cutter with clearance. A candy stamp has to be mirrored, or the text comes out backwards. A stencil needs bridges, or the centers of the letters fall out. Doing all of that by hand for every order is where the time goes.

The generator route

In the Bananas Design generators you upload a PNG, JPG or SVG of up to 8 MB and pick the part: cutter with stamp, candy stamp, plunger mold or stencil. The generator builds the walls, the fit, the mirroring and the bridges. Step by step:

  1. Open the generator for the part you want.
  2. Upload the image or pick an icon from the library. Even a photo of a drawing on white paper works.
  3. Set the size and measurements in millimeters.
  4. Check the 3D preview, which is free. If yellow areas show up, thicken the line or enlarge the part.
  5. Download the STL and 3MF, ready for your slicer. A credit is only used when you download.

What if the customer sends a photo?

A photo with a busy background doesn’t make a good outline: the software can’t tell the drawing from the scenery. Before converting, make the image look like a drawing:

  • Cut out the figure and make the background white.
  • Or trace over the photo, on paper or in an app, keeping only the outline and main lines.
  • Photograph the drawing on white paper, in good light and without your hand’s shadow.
  • To show the whole photo, use a different method: a lithophane, where the image appears when the part is held up to light.

Mistakes that ruin the part

Almost every problem file has one of these flaws at the source:

  • An image sent through a messaging app as a photo, which arrives compressed. Ask the customer to send it as a file.
  • A logo with gradients or shadows, which becomes a blob in the relief.
  • Lines too thin for the chosen size.
  • Text too small to read on a cookie.
  • Images with watermarks or from stock sites without a license.
  • Famous characters and brands without the owner’s permission.

After the STL: slice and print

With the file ready, open the 3MF in your slicer, pick the filament and check the preview layer by layer. Make sure the cutting wall shows up complete and the stamp’s fine details are there. If the part opens tiny or huge, it probably came in an STL with a different unit of measure, and the 3MF fixes that.

Frequently asked questions

Can I turn a photo into an STL?

A photo with a busy background doesn’t make a good outline. Cut out the figure, make it one color on a plain background and only then convert it.

What is the minimum line width?

For cutters and stamps, plan for at least 1 mm at the part’s final size. The generator’s editor highlights relief lines under 0.8 mm in yellow.

Do I need an SVG file?

No. SVG is the best starting point, but a PNG with a plain background and good resolution works too.

Which free software turns an image into an STL?

Inkscape turns a PNG into a vector, and Tinkercad, which runs in the browser, imports the SVG and exports an STL. For cutters, stamps and stencils, the generator does it all at once.

Can I use any image from the internet?

No. Use your own drawings, licensed images or the logo the customer sent you. Famous characters and brands need the owner’s permission.

Does the generator’s file open in any slicer?

The files come as STL and 3MF, the formats the most popular slicers open, like Bambu Studio and Orca Slicer.

Read next